Clarify that hibernate_resume must be called with interrupts enabled.
authormlarkin <mlarkin@openbsd.org>
Mon, 4 May 2015 02:18:05 +0000 (02:18 +0000)
committermlarkin <mlarkin@openbsd.org>
Mon, 4 May 2015 02:18:05 +0000 (02:18 +0000)
sys/kern/subr_hibernate.c

index 43ab9bf..0ea0763 100644 (file)
@@ -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)