mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-12-01 16:14:13 +08:00
drm/amd/pm: correct the sensor value of power for vangogh
This patch is to correct the sensor value of power for vangogh. Signed-off-by: Xiaojian Du <Xiaojian.Du@amd.com> Reviewed-by: Evan Quan <evan.quan@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
parent
5b2fc08c45
commit
0e61f09af4
@ -252,7 +252,8 @@ static int vangogh_get_smu_metrics_data(struct smu_context *smu,
|
||||
*value = metrics->UvdActivity;
|
||||
break;
|
||||
case METRICS_AVERAGE_SOCKETPOWER:
|
||||
*value = metrics->CurrentSocketPower;
|
||||
*value = (metrics->CurrentSocketPower << 8) /
|
||||
1000 ;
|
||||
break;
|
||||
case METRICS_TEMPERATURE_EDGE:
|
||||
*value = metrics->GfxTemperature / 100 *
|
||||
|
Loading…
Reference in New Issue
Block a user