drm/amd/pm: do not expose power implementation details to amdgpu_pm.c
authorEvan Quan <evan.quan@amd.com>
Mon, 22 Nov 2021 03:05:22 +0000 (11:05 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 14 Jan 2022 22:51:14 +0000 (17:51 -0500)
commit79c65f3fcbb1288b84473d45e6d001820a971d54
treec4ff9df5434597b2f9733f09c4ec9b2c3b1eafd5
parentbc143d8b8387ff0a22e4ef8e2375e63aa24bc311
drm/amd/pm: do not expose power implementation details to amdgpu_pm.c

amdgpu_pm.c holds all the user sysfs/hwmon interfaces. It's another
client of our power APIs. It's not proper to spike into power
implementation details there.

Signed-off-by: Evan Quan <evan.quan@amd.com>
Reviewed-by: Lijo Lazar <lijo.lazar@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/pm/amdgpu_dpm.c
drivers/gpu/drm/amd/pm/amdgpu_pm.c
drivers/gpu/drm/amd/pm/inc/amdgpu_dpm.h
drivers/gpu/drm/amd/pm/swsmu/amdgpu_smu.c