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/dev/acpi/acpi.c | |
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/dev/acpi/acpi.c')
-rw-r--r-- | sys/dev/acpi/acpi.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/dev/acpi/acpi.c b/sys/dev/acpi/acpi.c index c8bd966430f..8dcfbc546f0 100644 --- a/sys/dev/acpi/acpi.c +++ b/sys/dev/acpi/acpi.c @@ -1,4 +1,4 @@ -/* $OpenBSD: acpi.c,v 1.227 2011/07/02 22:20:07 nicm Exp $ */ +/* $OpenBSD: acpi.c,v 1.228 2011/09/20 14:06:26 deraadt Exp $ */ /* * Copyright (c) 2005 Thorsten Lockert <tholo@sigmasoft.com> * Copyright (c) 2005 Jordan Hargrave <jordan@openbsd.org> @@ -2064,6 +2064,8 @@ acpi_prepare_sleep_state(struct acpi_softc *sc, int state) wsdisplay_suspend(); #endif /* NWSDISPLAY > 0 */ + resettodr(); + bufq_quiesce(); config_suspend(TAILQ_FIRST(&alldevs), DVACT_QUIESCE); |