Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/pmax/pmax revert part of rev 1.66 that converted a ...



details:   https://anonhg.NetBSD.org/src/rev/cf695b272b97
branches:  trunk
changeset: 344313:cf695b272b97
user:      mrg <mrg%NetBSD.org@localhost>
date:      Tue Mar 22 04:48:25 2016 +0000

description:
revert part of rev 1.66 that converted a tri-state variable into
a bool while leaving a comparision against "< 3".

diffstat:

 sys/arch/pmax/pmax/dec_3maxplus.c |  10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)

diffs (40 lines):

diff -r 1e8bb693ec29 -r cf695b272b97 sys/arch/pmax/pmax/dec_3maxplus.c
--- a/sys/arch/pmax/pmax/dec_3maxplus.c Tue Mar 22 01:38:17 2016 +0000
+++ b/sys/arch/pmax/pmax/dec_3maxplus.c Tue Mar 22 04:48:25 2016 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: dec_3maxplus.c,v 1.70 2014/03/24 19:31:40 christos Exp $ */
+/* $NetBSD: dec_3maxplus.c,v 1.71 2016/03/22 04:48:25 mrg Exp $ */
 
 /*
  * Copyright (c) 1998 Jonathan Stone.  All rights reserved.
@@ -70,7 +70,7 @@
 #define __INTR_PRIVATE
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: dec_3maxplus.c,v 1.70 2014/03/24 19:31:40 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: dec_3maxplus.c,v 1.71 2016/03/22 04:48:25 mrg Exp $");
 
 #include <sys/param.h>
 #include <sys/cpu.h>
@@ -289,7 +289,7 @@
 static void
 dec_3maxplus_ioasic_intr(void)
 {
-       static bool warned = false;
+       static int warned = 0;
        bool ifound;
        uint32_t imsk, intr, can_serve, xxxintr;
 
@@ -309,10 +309,10 @@
 
                if (warned && !(can_serve & KN03_INTR_PSWARN)) {
                        printf("%s\n", "Power supply ok now.");
-                       warned = false;
+                       warned = 0;
                }
                if ((can_serve & KN03_INTR_PSWARN) && (warned < 3)) {
-                       warned = true;
+                       warned++;
                        printf("%s\n", "Power supply overheating");
                }
 



Home | Main Index | Thread Index | Old Index