]> git.baikalelectronics.ru Git - kernel.git/commit
drm/radeon/pm: autoswitch power state when in balanced mode
authorLucas Stach <dev@lynxeye.de>
Sat, 22 Oct 2016 23:05:33 +0000 (01:05 +0200)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 25 Oct 2016 18:44:03 +0000 (14:44 -0400)
commitcc32d0fdd81e9642fde74404dda419b96157b9f8
tree5a7a453f6fe8ea3c43cb328080bd1f06b2615eb6
parent35218d27db8573ca518051692ff3d923a27dfeb8
drm/radeon/pm: autoswitch power state when in balanced mode

The current default of always using the performance power state leads
to increased power consumption of mobile devices, which have a dedicated
battery power state. Switch between the performance and battery power
state automatically, dpending on the current AC power status, when the
user asked for the balanced power state.

The user can still override this logic by asking for the performance
or battery power state explicitly.

Tested-by: Michel Dänzer <michel.daenzer@amd.com>
Acked-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Lucas Stach <dev@lynxeye.de>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/radeon/radeon_pm.c