Add the next digit of precision to temperatures, which I missed when

converting the reporting format from degrees C to 0.1 degree K.
This commit is contained in:
Nathan Whitehorn 2011-05-29 20:04:02 +00:00
parent 6b9a12b391
commit d54e775e1e
2 changed files with 2 additions and 2 deletions

View File

@ -854,7 +854,7 @@ smu_sensor_read(struct smu_sensor *sens)
value <<= 1;
/* Convert from 16.16 fixed point degC into integer 0.1 K. */
value = 10*(value >> 16) + 2732;
value = 10*(value >> 16) + ((10*(value & 0xffff)) >> 16) + 2732;
break;
case SMU_VOLTAGE_SENSOR:
value *= sc->sc_cpu_volt_scale;

View File

@ -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 */