diff options
Diffstat (limited to 'sys/kern/subr_hibernate.c')
-rw-r--r-- | sys/kern/subr_hibernate.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/sys/kern/subr_hibernate.c b/sys/kern/subr_hibernate.c index 5a74da52cef..c5b1d39918f 100644 --- a/sys/kern/subr_hibernate.c +++ b/sys/kern/subr_hibernate.c @@ -1,4 +1,4 @@ -/* $OpenBSD: subr_hibernate.c,v 1.48 2013/01/17 01:28:01 mlarkin Exp $ */ +/* $OpenBSD: subr_hibernate.c,v 1.49 2013/01/17 02:36:45 deraadt Exp $ */ /* * Copyright (c) 2011 Ariane van der Steldt <ariane@stack.nl> @@ -1812,7 +1812,12 @@ hibernate_suspend(void) if (hibernate_write_signature(&hib_info)) return (1); + /* Allow the disk to settle */ delay(500000); + + hib_info.io_func(hib_info.device, 0, (vaddr_t)NULL, 0, + HIB_DONE, hib_info.io_page); + return (0); } |