From 3120f5344c9e011641419cfed4c7ef942b70e06b Mon Sep 17 00:00:00 2001 From: mlarkin Date: Mon, 4 May 2015 02:18:05 +0000 Subject: [PATCH] Clarify that hibernate_resume must be called with interrupts enabled. --- sys/kern/subr_hibernate.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 @@ -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) -- 2.20.1