Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/sparc64/dev Add comment on what 'overtemp' is about...



details:   https://anonhg.NetBSD.org/src/rev/fced76e1359f
branches:  trunk
changeset: 507185:fced76e1359f
user:      hubertf <hubertf%NetBSD.org@localhost>
date:      Fri Mar 16 10:47:25 2001 +0000

description:
Add comment on what 'overtemp' is about. OK'd by eeh.

diffstat:

 sys/arch/sparc64/dev/sbus.c |  9 +++++++--
 1 files changed, 7 insertions(+), 2 deletions(-)

diffs (29 lines):

diff -r aebdba88b977 -r fced76e1359f sys/arch/sparc64/dev/sbus.c
--- a/sys/arch/sparc64/dev/sbus.c       Fri Mar 16 10:28:53 2001 +0000
+++ b/sys/arch/sparc64/dev/sbus.c       Fri Mar 16 10:47:25 2001 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: sbus.c,v 1.40 2001/03/14 00:52:19 eeh Exp $ */
+/*     $NetBSD: sbus.c,v 1.41 2001/03/16 10:47:25 hubertf Exp $ */
 
 /*-
  * Copyright (c) 1998 The NetBSD Foundation, Inc.
@@ -558,13 +558,18 @@
 
 /*
  * Handle an overtemp situation.
+ *
+ * SPARCs have temperature sensors which generate interrupts
+ * if the machine's temperature exceeds a certain threshold.
+ * This handles the interrupt and powers off the machine.
+ * The same needs to be done to PCI controller drivers.
  */
 int
 sbus_overtemp(arg)
        void *arg;
 {
        /* Should try a clean shutdown first */
-       printf("DANGER: OVERTEMP detected\nShutting down...\n");
+       printf("DANGER: OVER TEMPERATURE detected\nShutting down...\n");
        delay(20);
        cpu_reboot(RB_POWERDOWN|RB_HALT, NULL);
 }



Home | Main Index | Thread Index | Old Index