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)
commit1c331f75aa6ccbf64ebcc5a019183e617c9d818a
tree5a7a453f6fe8ea3c43cb328080bd1f06b2615eb6
parentfad742f89d20f8b0d6765ff8312eb091f6767e43
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