drm/radeon/kms: fix thermal sensor reporting on rv6xx

Temperature is not shifted as on newer asics.

Signed-off-by: Alex Deucher <alexdeucher@gmail.com>
Cc: stable@kernel.org
Signed-off-by: Dave Airlie <airlied@redhat.com>
This commit is contained in:
Alex Deucher 2010-11-08 18:39:18 +00:00 committed by Dave Airlie
parent bdd91b2b57
commit b2298fd271

View File

@ -97,14 +97,8 @@ u32 rv6xx_get_temp(struct radeon_device *rdev)
{ {
u32 temp = (RREG32(CG_THERMAL_STATUS) & ASIC_T_MASK) >> u32 temp = (RREG32(CG_THERMAL_STATUS) & ASIC_T_MASK) >>
ASIC_T_SHIFT; ASIC_T_SHIFT;
u32 actual_temp = 0;
if ((temp >> 7) & 1) return temp * 1000;
actual_temp = 0;
else
actual_temp = (temp >> 1) & 0xff;
return actual_temp * 1000;
} }
void r600_pm_get_dynpm_state(struct radeon_device *rdev) void r600_pm_get_dynpm_state(struct radeon_device *rdev)