]> 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)
commite222962a219c3e1ec7eeb7b0465132d0cfa1744e
tree5a7a453f6fe8ea3c43cb328080bd1f06b2615eb6
parent97f98847263563ed69b8538a6cedc4700da68682
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