diff options
author | Alex Deucher <alexander.deucher@amd.com> | 2014-01-30 11:19:22 -0500 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2014-02-06 12:22:46 -0500 |
commit | 9f3f63f24c901cad831e78bbb738df61a1c4ff02 (patch) | |
tree | da2a56d1219d83608c6b457a54aa08dc9e41dc80 /drivers/gpu/drm/radeon/si_dpm.c | |
parent | 858a41c853cef2cb01de34dae334c19c1c15b237 (diff) | |
download | blackbird-op-linux-9f3f63f24c901cad831e78bbb738df61a1c4ff02.tar.gz blackbird-op-linux-9f3f63f24c901cad831e78bbb738df61a1c4ff02.zip |
drm/radeon/dpm: use the driver state for dpm debugfs
For btc and newer, we may modify the power state depending
on the circumstances. Use the modified state rather than
the base state.
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/radeon/si_dpm.c')
-rw-r--r-- | drivers/gpu/drm/radeon/si_dpm.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/gpu/drm/radeon/si_dpm.c b/drivers/gpu/drm/radeon/si_dpm.c index 0471501338fb..eafb0e6bc67e 100644 --- a/drivers/gpu/drm/radeon/si_dpm.c +++ b/drivers/gpu/drm/radeon/si_dpm.c @@ -6472,7 +6472,8 @@ void si_dpm_fini(struct radeon_device *rdev) void si_dpm_debugfs_print_current_performance_level(struct radeon_device *rdev, struct seq_file *m) { - struct radeon_ps *rps = rdev->pm.dpm.current_ps; + struct evergreen_power_info *eg_pi = evergreen_get_pi(rdev); + struct radeon_ps *rps = &eg_pi->current_rps; struct ni_ps *ps = ni_get_ps(rps); struct rv7xx_pl *pl; u32 current_index = |