diff options
author | 2014-09-19 20:02:25 +0000 | |
---|---|---|
committer | 2014-09-19 20:02:25 +0000 | |
commit | 95cb2185fb7de220b9c42b582850df2bfdbf158c (patch) | |
tree | 72568f09035125e9be6f3100d15defb93372840a /sys/kern/subr_hibernate.c | |
parent | Use config_suspend_all(9). (diff) | |
download | wireguard-openbsd-95cb2185fb7de220b9c42b582850df2bfdbf158c.tar.xz wireguard-openbsd-95cb2185fb7de220b9c42b582850df2bfdbf158c.zip |
Use config_suspend_all(9).
Diffstat (limited to 'sys/kern/subr_hibernate.c')
-rw-r--r-- | sys/kern/subr_hibernate.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/kern/subr_hibernate.c b/sys/kern/subr_hibernate.c index 522287c0f01..99323129106 100644 --- a/sys/kern/subr_hibernate.c +++ b/sys/kern/subr_hibernate.c @@ -1,4 +1,4 @@ -/* $OpenBSD: subr_hibernate.c,v 1.99 2014/07/21 01:57:55 mlarkin Exp $ */ +/* $OpenBSD: subr_hibernate.c,v 1.100 2014/09/19 20:02:25 kettenis Exp $ */ /* * Copyright (c) 2011 Ariane van der Steldt <ariane@stack.nl> @@ -1243,7 +1243,7 @@ hibernate_resume(void) goto fail; DPRINTF("hibernate: quiescing devices\n"); - if (config_suspend(device_mainbus(), DVACT_QUIESCE) != 0) + if (config_suspend_all(DVACT_QUIESCE) != 0) goto fail; (void) splhigh(); @@ -1251,7 +1251,7 @@ hibernate_resume(void) cold = 1; DPRINTF("hibernate: suspending devices\n"); - if (config_suspend(device_mainbus(), DVACT_SUSPEND) != 0) { + if (config_suspend_all(DVACT_SUSPEND) != 0) { cold = 0; hibernate_enable_intr_machdep(); goto fail; |