summaryrefslogtreecommitdiffstats
path: root/sys/powerpc/powermac/smusat.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/powerpc/powermac/smusat.c')
-rw-r--r--sys/powerpc/powermac/smusat.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/powerpc/powermac/smusat.c b/sys/powerpc/powermac/smusat.c
index 886cd4f..fcaa9ed 100644
--- a/sys/powerpc/powermac/smusat.c
+++ b/sys/powerpc/powermac/smusat.c
@@ -235,7 +235,7 @@ smusat_sensor_read(struct smu_sensor *sens)
/* 16.16 */
value <<= 10;
/* From 16.16 to 0.1 C */
- value = 10*(value >> 16) + 2732;
+ value = 10*(value >> 16) + ((10*(value & 0xffff)) >> 16) + 2732;
break;
case SMU_VOLTAGE_SENSOR:
/* 16.16 */
OpenPOWER on IntegriCloud