drm/radeon/dpm: add infrastructure to properly handle bapm
authorAlex Deucher <alexander.deucher@amd.com>
Mon, 9 Sep 2013 23:11:52 +0000 (19:11 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 11 Sep 2013 15:44:39 +0000 (11:44 -0400)
commit1c71bda097f797820e246dc9e38f0bda817d0818
tree64d747bf45f56211e2f2cd3a0c347e891ac0a253
parent64d03221eed88dce7f0c1edd44a3680b595b29bd
drm/radeon/dpm: add infrastructure to properly handle bapm

bapm is a pm feature for sharing the power budget between
the GPU and the CPU on APUs.  It needs to be enabled or
disabled in certain circumstances.  For now, disable it
when on battery and enable it when on AC power.

Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/radeon/radeon.h
drivers/gpu/drm/radeon/radeon_pm.c