summaryrefslogtreecommitdiff
path: root/sys/arch/hp300
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2012-10-08 21:47:52 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2012-10-08 21:47:52 +0000
commit4a7a1f17c7d6f8e79f29d4fde2ba5faf09b7f5a8 (patch)
treefdc5670bf4d0a8cd810fe846698cb565f1f51cb9 /sys/arch/hp300
parentc7f240fd53223122e6fe8cee52bb76b460263763 (diff)
Revamp the sequences for suspend/hibernate -> resume so that the code
paths are reflexive. It is now possible to fail part-way through a suspend sequence, and recover along the resume code path. Split DVACT_SUSPEND by adding a new DVACT_POWERDOWN method is used after hibernate (and suspend too) to finish the job. Some drivers must be converted at the same time to use this instead of shutdown hooks (the others will follow at a later time) ok kettenis mlarkin
Diffstat (limited to 'sys/arch/hp300')
-rw-r--r--sys/arch/hp300/hp300/machdep.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/arch/hp300/hp300/machdep.c b/sys/arch/hp300/hp300/machdep.c
index d23ea45a294..3a81cb385de 100644
--- a/sys/arch/hp300/hp300/machdep.c
+++ b/sys/arch/hp300/hp300/machdep.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: machdep.c,v 1.135 2011/11/01 21:20:55 miod Exp $ */
+/* $OpenBSD: machdep.c,v 1.136 2012/10/08 21:47:47 deraadt Exp $ */
/* $NetBSD: machdep.c,v 1.121 1999/03/26 23:41:29 mycroft Exp $ */
/*
@@ -615,8 +615,8 @@ boot(howto)
dumpsys();
haltsys:
- /* Run any shutdown hooks. */
doshutdownhooks();
+ config_suspend(TAILQ_FIRST(&alldevs), DVACT_POWERDOWN);
/* Finally, halt/reboot the system. */
if (howto & RB_HALT) {