Date: Sun, 13 Sep 2009 10:04:08 +0000 (UTC) From: Norikatsu Shigemura <nork@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-8@freebsd.org Subject: svn commit: r197149 - stable/8/sys/dev/coretemp Message-ID: <200909131004.n8DA48wf013160@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: nork Date: Sun Sep 13 10:04:08 2009 New Revision: 197149 URL: http://svn.freebsd.org/changeset/base/197149 Log: MFC r196889: Change 'dev.cpu.N.temperature', sysctl I (degC) to IK (Kelvin), to match acpi_thermal(4) and amdtemp(4). Approved by: re (rwatson) Reviewed by: rpaulo Suggested by: ume Modified: stable/8/sys/dev/coretemp/coretemp.c (contents, props changed) Modified: stable/8/sys/dev/coretemp/coretemp.c ============================================================================== --- stable/8/sys/dev/coretemp/coretemp.c Sun Sep 13 01:00:24 2009 (r197148) +++ stable/8/sys/dev/coretemp/coretemp.c Sun Sep 13 10:04:08 2009 (r197149) @@ -48,6 +48,8 @@ __FBSDID("$FreeBSD$"); #include <machine/cputypes.h> #include <machine/md_var.h> +#define TZ_ZEROC 2732 + struct coretemp_softc { device_t sc_dev; int sc_tjmax; @@ -193,8 +195,8 @@ coretemp_attach(device_t dev) SYSCTL_CHILDREN(device_get_sysctl_tree(pdev)), OID_AUTO, "temperature", CTLTYPE_INT | CTLFLAG_RD, - dev, 0, coretemp_get_temp_sysctl, "I", - "Current temperature in degC"); + dev, 0, coretemp_get_temp_sysctl, "IK", + "Current temperature"); return (0); } @@ -283,7 +285,7 @@ coretemp_get_temp_sysctl(SYSCTL_HANDLER_ device_t dev = (device_t) arg1; int temp; - temp = coretemp_get_temp(dev); + temp = coretemp_get_temp(dev) * 10 + TZ_ZEROC; return (sysctl_handle_int(oidp, &temp, 0, req)); }
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200909131004.n8DA48wf013160>