mirror of
https://git.FreeBSD.org/src.git
synced 2025-01-06 13:09:50 +00:00
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:
parent
6b9a12b391
commit
d54e775e1e
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=222462
@ -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;
|
||||
|
@ -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 */
|
||||
|
Loading…
Reference in New Issue
Block a user