Commit df06583d authored by Evan Quan's avatar Evan Quan Committed by Alex Deucher

drm/amd/powerplay: use the same interval as PMFW on retrieving metrics table

Current 100ms interval makes no sense. User gets outdated
data due to this.
Signed-off-by: default avatarEvan Quan <evan.quan@amd.com>
Reviewed-by: default avatarAlex Deucher <alexander.deucher@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent 8c686254
...@@ -573,7 +573,7 @@ static int navi10_get_smu_metrics_data(struct smu_context *smu, ...@@ -573,7 +573,7 @@ static int navi10_get_smu_metrics_data(struct smu_context *smu,
mutex_lock(&smu->metrics_lock); mutex_lock(&smu->metrics_lock);
if (!smu_table->metrics_time || if (!smu_table->metrics_time ||
time_after(jiffies, smu_table->metrics_time + msecs_to_jiffies(100))) { time_after(jiffies, smu_table->metrics_time + msecs_to_jiffies(1))) {
ret = smu_update_table(smu, ret = smu_update_table(smu,
SMU_TABLE_SMU_METRICS, SMU_TABLE_SMU_METRICS,
0, 0,
......
...@@ -559,7 +559,7 @@ static int sienna_cichlid_get_smu_metrics_data(struct smu_context *smu, ...@@ -559,7 +559,7 @@ static int sienna_cichlid_get_smu_metrics_data(struct smu_context *smu,
mutex_lock(&smu->metrics_lock); mutex_lock(&smu->metrics_lock);
if (!smu_table->metrics_time || if (!smu_table->metrics_time ||
time_after(jiffies, smu_table->metrics_time + msecs_to_jiffies(100))) { time_after(jiffies, smu_table->metrics_time + msecs_to_jiffies(1))) {
ret = smu_update_table(smu, ret = smu_update_table(smu,
SMU_TABLE_SMU_METRICS, SMU_TABLE_SMU_METRICS,
0, 0,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment