Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/powerpc/oea Initialize sensor state before register...



details:   https://anonhg.NetBSD.org/src/rev/ec9ae6614ac3
branches:  trunk
changeset: 766310:ec9ae6614ac3
user:      pgoyette <pgoyette%NetBSD.org@localhost>
date:      Mon Jun 20 16:31:28 2011 +0000

description:
Initialize sensor state before registering.

diffstat:

 sys/arch/powerpc/oea/cpu_subr.c |  5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diffs (26 lines):

diff -r 797087c8d344 -r ec9ae6614ac3 sys/arch/powerpc/oea/cpu_subr.c
--- a/sys/arch/powerpc/oea/cpu_subr.c   Mon Jun 20 15:56:36 2011 +0000
+++ b/sys/arch/powerpc/oea/cpu_subr.c   Mon Jun 20 16:31:28 2011 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: cpu_subr.c,v 1.67 2011/06/20 06:21:45 matt Exp $       */
+/*     $NetBSD: cpu_subr.c,v 1.68 2011/06/20 16:31:28 pgoyette Exp $   */
 
 /*-
  * Copyright (c) 2001 Matt Thomas.
@@ -34,7 +34,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: cpu_subr.c,v 1.67 2011/06/20 06:21:45 matt Exp $");
+__KERNEL_RCSID(0, "$NetBSD: cpu_subr.c,v 1.68 2011/06/20 16:31:28 pgoyette Exp $");
 
 #include "opt_ppcparam.h"
 #include "opt_multiprocessor.h"
@@ -1128,6 +1128,7 @@
        sme = sysmon_envsys_create();
 
        sensor.units = ENVSYS_STEMP;
+       sensor.state = ENVSYS_SINVALID;
        (void)strlcpy(sensor.desc, "CPU Temp", sizeof(sensor.desc));
        if (sysmon_envsys_sensor_attach(sme, &sensor)) {
                sysmon_envsys_destroy(sme);



Home | Main Index | Thread Index | Old Index