Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/sparc/dev Add a 1 second delay to powerdown sequenc...



details:   https://anonhg.NetBSD.org/src/rev/3e64f0c0478b
branches:  trunk
changeset: 472379:3e64f0c0478b
user:      fair <fair%NetBSD.org@localhost>
date:      Wed Apr 28 18:49:40 1999 +0000

description:
Add a 1 second delay to powerdown sequence to prevent the OpenBoot PROMs
from getting control and reporting a "powerdown failure", per PR#7487

diffstat:

 sys/arch/sparc/dev/power.c |  8 +++++++-
 1 files changed, 7 insertions(+), 1 deletions(-)

diffs (20 lines):

diff -r 61a3579a901a -r 3e64f0c0478b sys/arch/sparc/dev/power.c
--- a/sys/arch/sparc/dev/power.c        Wed Apr 28 17:34:01 1999 +0000
+++ b/sys/arch/sparc/dev/power.c        Wed Apr 28 18:49:40 1999 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: power.c,v 1.10 1998/06/06 21:40:20 thorpej Exp $ */
+/*     $NetBSD: power.c,v 1.11 1999/04/28 18:49:40 fair Exp $ */
 
 /*
  * Copyright (c) 1996
@@ -107,4 +107,10 @@
        /* Only try if the power node was attached. */
        if (power_reg != NULL)
                *POWER_REG |= POWER_OFF;
+
+       /*
+        * don't return too quickly; the PROMs on some sparcs
+        * report the powerdown as failed if we do.
+        */
+       DELAY(1000000);
 }



Home | Main Index | Thread Index | Old Index