summaryrefslogtreecommitdiff
path: root/sys/kern/subr_hibernate.c
diff options
context:
space:
mode:
authorMike Larkin <mlarkin@cvs.openbsd.org>2015-05-04 02:18:06 +0000
committerMike Larkin <mlarkin@cvs.openbsd.org>2015-05-04 02:18:06 +0000
commitce18cfbfcdd459bc7d493bf26ce2c031a479ad05 (patch)
tree0a9e968668f759ad05c69d246dc41f0e85b758d3 /sys/kern/subr_hibernate.c
parent9dcc1cb1d90d049c23e9365e65650d46d5ac4add (diff)
Clarify that hibernate_resume must be called with interrupts enabled.
Diffstat (limited to 'sys/kern/subr_hibernate.c')
-rw-r--r--sys/kern/subr_hibernate.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/kern/subr_hibernate.c b/sys/kern/subr_hibernate.c
index 43ab9bf50aa..0ea07637adc 100644
--- a/sys/kern/subr_hibernate.c
+++ b/sys/kern/subr_hibernate.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: subr_hibernate.c,v 1.115 2015/02/07 02:50:53 mlarkin Exp $ */
+/* $OpenBSD: subr_hibernate.c,v 1.116 2015/05/04 02:18:05 mlarkin Exp $ */
/*
* Copyright (c) 2011 Ariane van der Steldt <ariane@stack.nl>
@@ -1036,6 +1036,8 @@ hibernate_preserve_entropy(union hibernate_info *hib)
* Reads the signature block from swap, checks against the current machine's
* information. If the information matches, perform a resume by reading the
* saved image into the pig area, and unpacking.
+ *
+ * Must be called with interrupts enabled.
*/
void
hibernate_resume(void)