drm/radeon/dpm/atom: restructure logic to work around a compiler bug