From a835ef0dc75c1324c302b0d40c18b274f3e174c7 Mon Sep 17 00:00:00 2001 From: Martin Pieuchot Date: Sat, 31 May 2014 15:49:29 +0000 Subject: Revert previous diff setting cold to 1 on shutdown because it breaks machine with softraid(4) disks. softraid(4) is the last real consumer of the doshutdownhooks(9) API and it is not trivial to convert its hook to a DVACT_POWERDOWN handler since the latter does not allow to sleep. --- sys/arch/hppa/hppa/machdep.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'sys/arch/hppa') diff --git a/sys/arch/hppa/hppa/machdep.c b/sys/arch/hppa/hppa/machdep.c index d1888dfe36c..6dab4a60915 100644 --- a/sys/arch/hppa/hppa/machdep.c +++ b/sys/arch/hppa/hppa/machdep.c @@ -1,4 +1,4 @@ -/* $OpenBSD: machdep.c,v 1.221 2014/05/30 13:46:16 mpi Exp $ */ +/* $OpenBSD: machdep.c,v 1.222 2014/05/31 15:49:28 mpi Exp $ */ /* * Copyright (c) 1999-2003 Michael Shalayeff @@ -925,9 +925,10 @@ boot(int howto) } if_downall(); + /* XXX probably save howto into stable storage */ + uvm_shutdown(); splhigh(); - cold = 1; if (howto & RB_DUMP) dumpsys(); -- cgit v1.2.3