summaryrefslogtreecommitdiffstats
path: root/sys/arm/freescale
diff options
context:
space:
mode:
authorloos <loos@FreeBSD.org>2016-05-22 13:58:32 +0000
committerloos <loos@FreeBSD.org>2016-05-22 13:58:32 +0000
commitf73b4006ff80acf9a60d242d6f438db07531ecfe (patch)
tree4ab2d9021cb5084e2afb4d7628a72937244d44e7 /sys/arm/freescale
parente0e5d3ee3792f1fe920a8174d18341c1a5f34afe (diff)
downloadFreeBSD-src-f73b4006ff80acf9a60d242d6f438db07531ecfe.zip
FreeBSD-src-f73b4006ff80acf9a60d242d6f438db07531ecfe.tar.gz
Fix the deciKelvin to Celsius conversion in kernel.
After r285994, sysctl(8) was fixed to use 273.15 instead of 273.20 as 0C reference and as result, the temperature read in sysctl(8) now exibits a +0.1C difference. This commit fix the kernel references to match the reference value used in sysctl(8) after r285994. Sponsored by: Rubicon Communications (Netgate)
Diffstat (limited to 'sys/arm/freescale')
-rw-r--r--sys/arm/freescale/imx/imx6_anatop.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/arm/freescale/imx/imx6_anatop.c b/sys/arm/freescale/imx/imx6_anatop.c
index c0afe57..551531a 100644
--- a/sys/arm/freescale/imx/imx6_anatop.c
+++ b/sys/arm/freescale/imx/imx6_anatop.c
@@ -139,7 +139,7 @@ static struct oppt {
*/
static uint32_t imx6_ocotp_mhz_tab[] = {792, 852, 996, 1200};
-#define TZ_ZEROC 2732 /* deci-Kelvin <-> deci-Celcius offset. */
+#define TZ_ZEROC 2731 /* deci-Kelvin <-> deci-Celcius offset. */
uint32_t
imx6_anatop_read_4(bus_size_t offset)
OpenPOWER on IntegriCloud