drm/amd/powerplay: refine the logic of whether need to update power state.
authorRex Zhu <Rex.Zhu@amd.com>
Wed, 4 Nov 2015 06:56:56 +0000 (14:56 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 21 Dec 2015 21:42:29 +0000 (16:42 -0500)
commitf4caf3e584120e20f8ecabefa8a0d62fe9b3ec89
treef3ea3716f6b864e0a1d315b0f3378e702319afe6
parente829ecdb15671d8c1a106f608aa419f7fd4d7366
drm/amd/powerplay: refine the logic of whether need to update power state.

Better handle power state changes.

Signed-off-by: Rex Zhu <Rex.Zhu@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Reviewed-by: Jammy Zhou <Jammy.Zhou@amd.com>
drivers/gpu/drm/amd/powerplay/eventmgr/psm.c
drivers/gpu/drm/amd/powerplay/eventmgr/psm.h