Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/x86/x86 Inialize sensor state before registering.



details:   https://anonhg.NetBSD.org/src/rev/8487813ae305
branches:  trunk
changeset: 766303:8487813ae305
user:      pgoyette <pgoyette%NetBSD.org@localhost>
date:      Mon Jun 20 15:01:30 2011 +0000

description:
Inialize sensor state before registering.

diffstat:

 sys/arch/x86/x86/coretemp.c |  5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diffs (26 lines):

diff -r 2cd327d266f8 -r 8487813ae305 sys/arch/x86/x86/coretemp.c
--- a/sys/arch/x86/x86/coretemp.c       Mon Jun 20 15:00:04 2011 +0000
+++ b/sys/arch/x86/x86/coretemp.c       Mon Jun 20 15:01:30 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: coretemp.c,v 1.25 2011/03/19 06:15:12 ahoka Exp $ */
+/* $NetBSD: coretemp.c,v 1.26 2011/06/20 15:01:30 pgoyette Exp $ */
 
 /*-
  * Copyright (c) 2011 The NetBSD Foundation, Inc.
@@ -61,7 +61,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: coretemp.c,v 1.25 2011/03/19 06:15:12 ahoka Exp $");
+__KERNEL_RCSID(0, "$NetBSD: coretemp.c,v 1.26 2011/06/20 15:01:30 pgoyette Exp $");
 
 #include <sys/param.h>
 #include <sys/device.h>
@@ -172,6 +172,7 @@
 
        sc->sc_sensor.units = ENVSYS_STEMP;
        sc->sc_sensor.flags = ENVSYS_FMONCRITICAL;
+       sc->sc_sensor.state = ENVSYS_SINVALID;
 
        (void)pmf_device_register(self, NULL, NULL);
        (void)snprintf(sc->sc_sensor.desc, sizeof(sc->sc_sensor.desc),



Home | Main Index | Thread Index | Old Index