diff options
author | Michael Shalayeff <mickey@cvs.openbsd.org> | 2001-06-23 23:13:40 +0000 |
---|---|---|
committer | Michael Shalayeff <mickey@cvs.openbsd.org> | 2001-06-23 23:13:40 +0000 |
commit | fdabc8b57e9258176458e9a280783ff8286086eb (patch) | |
tree | fed4eb47e70ee016646b871e0a823f92abb50c27 | |
parent | 264ed7ade4b9a92ba0f17dc4c3670fc0dd00454e (diff) |
do not do sync if too cold; niklas@ arrived
-rw-r--r-- | sys/arch/i386/i386/apm.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/sys/arch/i386/i386/apm.c b/sys/arch/i386/i386/apm.c index 869ea6d2670..94860544e1b 100644 --- a/sys/arch/i386/i386/apm.c +++ b/sys/arch/i386/i386/apm.c @@ -1,4 +1,4 @@ -/* $OpenBSD: apm.c,v 1.45 2001/02/19 04:57:02 ho Exp $ */ +/* $OpenBSD: apm.c,v 1.46 2001/06/23 23:13:39 mickey Exp $ */ /*- * Copyright (c) 1998-2000 Michael Shalayeff. All rights reserved. @@ -319,7 +319,8 @@ apm_suspend() { dopowerhooks(PWR_SUSPEND); - vfs_syncwait(0); + if (cold) + vfs_syncwait(0); (void)apm_set_powstate(APM_DEV_ALLDEVS, APM_SYS_SUSPEND); } @@ -329,7 +330,8 @@ apm_standby() { dopowerhooks(PWR_STANDBY); - vfs_syncwait(0); + if (cold) + vfs_syncwait(0); (void)apm_set_powstate(APM_DEV_ALLDEVS, APM_SYS_STANDBY); } |