drm/amd/powerplay: refine code in amd_powerplay.c (v2)
authorRex Zhu <Rex.Zhu@amd.com>
Fri, 29 Sep 2017 05:57:54 +0000 (13:57 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Sun, 1 Oct 2017 21:34:18 +0000 (17:34 -0400)
commite5f23736a88c1d8d727ac655fef5e752507eea8e
tree4cc6409d66ce0159082f20a1b39346d0c253ebd4
parent63cdc76e29a60d810263474ab072a587009d18b8
drm/amd/powerplay: refine code in amd_powerplay.c (v2)

1. use flag PP_DPM_DISABLED within powerplay
   notify amdgpu dpm state by cgs interface.
2. delete redundant virtualization check in
   powerplay

v2: squash in fix for hwmgr_init (Rex)

Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Rex Zhu <Rex.Zhu@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_powerplay.c
drivers/gpu/drm/amd/powerplay/amd_powerplay.c
drivers/gpu/drm/amd/powerplay/inc/amd_powerplay.h