summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEvgeny Pinchuk <evgeny.pinchuk@amd.com>2014-03-27 09:55:54 +0200
committerOded Gabbay <oded.gabbay@amd.com>2014-03-31 10:07:27 +0300
commitb093b9c1d73659b41b7b5e381743d9932680251f (patch)
treeaa4c4ed7a263485a50b0a12031c4f27b301d6eb5
parenta1d5c0788a773e9353f17573a7df15b0c27a11ee (diff)
hsa/radeon: Alternating the source of max clock
Changing the source of the max engine clock value. Signed-off-by: Evgeny Pinchuk <evgeny.pinchuk@amd.com> Signed-off-by: Oded Gabbay <oded.gabbay@amd.com>
-rw-r--r--drivers/gpu/drm/radeon/radeon_kfd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/radeon/radeon_kfd.c b/drivers/gpu/drm/radeon/radeon_kfd.c
index 39839a4b332b..074d74bc254e 100644
--- a/drivers/gpu/drm/radeon/radeon_kfd.c
+++ b/drivers/gpu/drm/radeon/radeon_kfd.c
@@ -282,5 +282,5 @@ static uint32_t get_max_engine_clock_in_mhz(struct kgd_dev *kgd)
struct radeon_device *rdev = (struct radeon_device *)kgd;
/* The sclk is in quantas of 10kHz */
- return rdev->pm.power_state->clock_info->sclk / 100;
+ return rdev->pm.dpm.dyn_state.max_clock_voltage_on_ac.sclk / 100;
}