summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2022-02-19 23:57:10 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2022-02-19 23:57:10 +0000
commitdcec42031b30f3a84a4f8a5670ea67487e141043 (patch)
tree9ef02ff68ed7a0b4645053b7e1d3f99f2a3b4ff1
parent5958d016793907e391edde84bfcfd131646e98c4 (diff)
The suspend/resume code sleeps-not-allowed phases are protected with
cold=2. Use the same strategy in a a similar phase during hibernate.
-rw-r--r--sys/kern/subr_hibernate.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/kern/subr_hibernate.c b/sys/kern/subr_hibernate.c
index f2abf7cb8bf..d1c967dcda2 100644
--- a/sys/kern/subr_hibernate.c
+++ b/sys/kern/subr_hibernate.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: subr_hibernate.c,v 1.133 2022/01/17 02:54:28 mlarkin Exp $ */
+/* $OpenBSD: subr_hibernate.c,v 1.134 2022/02/19 23:57:09 deraadt Exp $ */
/*
* Copyright (c) 2011 Ariane van der Steldt <ariane@stack.nl>
@@ -1184,7 +1184,7 @@ hibernate_resume(void)
(void) splhigh();
hibernate_disable_intr_machdep();
- cold = 1;
+ cold = 2;
DPRINTF("hibernate: suspending devices\n");
if (config_suspend_all(DVACT_SUSPEND) != 0) {