diff options
author | Vitaly Prosyak <vitaly.prosyak@amd.com> | 2015-11-30 16:39:53 -0500 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2015-12-21 16:42:52 -0500 |
commit | c4dd206be1560ebb6eef9cf2200d10a4577cef3f (patch) | |
tree | 6cf1e82e2751da36951af1d6374a944df1c75297 /drivers/gpu/drm/amd/powerplay/hwmgr/hardwaremanager.c | |
parent | 9c5f8de6ef36df33e655039fb9392b0ee7203d30 (diff) | |
download | op-kernel-dev-c4dd206be1560ebb6eef9cf2200d10a4577cef3f.zip op-kernel-dev-c4dd206be1560ebb6eef9cf2200d10a4577cef3f.tar.gz |
amd\powerplay Implement get dal power level
Implement get dal power level and simple clock info
Signed-off-by: Vitaly Prosyak <vitaly.prosyak@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/powerplay/hwmgr/hardwaremanager.c')
-rw-r--r-- | drivers/gpu/drm/amd/powerplay/hwmgr/hardwaremanager.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/powerplay/hwmgr/hardwaremanager.c b/drivers/gpu/drm/amd/powerplay/hwmgr/hardwaremanager.c index 31b0dc3..d24a419 100644 --- a/drivers/gpu/drm/amd/powerplay/hwmgr/hardwaremanager.c +++ b/drivers/gpu/drm/amd/powerplay/hwmgr/hardwaremanager.c @@ -261,6 +261,15 @@ int phm_store_dal_configuration_data(struct pp_hwmgr *hwmgr, } +int phm_get_dal_power_level(struct pp_hwmgr *hwmgr, + struct pp_dal_clock_info*info) +{ + if (hwmgr == NULL || hwmgr->hwmgr_func->get_dal_power_level == NULL) + return -EINVAL; + + return hwmgr->hwmgr_func->get_dal_power_level(hwmgr,info); +} + int phm_set_cpu_power_state(struct pp_hwmgr *hwmgr) { if (hwmgr != NULL && hwmgr->hwmgr_func->set_cpu_power_state != NULL) |