diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2011-09-20 14:06:27 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2011-09-20 14:06:27 +0000 |
commit | 6bcd8b084ad4b35f7b7874bec2751b0b8adae96f (patch) | |
tree | 930cf7aceb1814cd086546c2eb20afe5590fae37 /sys/arch/loongson | |
parent | 03aaea893c8ae74ee1a6d1a4c3b7dab7bacdc508 (diff) |
Very early in suspend while the clock is still ticking realtime,
save the clock back to the rtc. The zaurus already did this.
ok phessler miod kettenis
Diffstat (limited to 'sys/arch/loongson')
-rw-r--r-- | sys/arch/loongson/dev/apm.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/sys/arch/loongson/dev/apm.c b/sys/arch/loongson/dev/apm.c index 58b6cbc1185..37c2bcba289 100644 --- a/sys/arch/loongson/dev/apm.c +++ b/sys/arch/loongson/dev/apm.c @@ -1,4 +1,4 @@ -/* $OpenBSD: apm.c,v 1.10 2011/09/18 12:01:06 phessler Exp $ */ +/* $OpenBSD: apm.c,v 1.11 2011/09/20 14:06:26 deraadt Exp $ */ /*- * Copyright (c) 2001 Alexander Guy. All rights reserved. @@ -358,6 +358,9 @@ apm_suspend() #if NSWDISPLAY > 0 wsdisplay_suspend(); #endif + + resettodr(); + bufq_quiesce(); config_suspend(TAILQ_FIRST(&alldevs), DVACT_QUIESCE); |