summaryrefslogtreecommitdiff
path: root/sys/arch
diff options
context:
space:
mode:
authorPeter Hessler <phessler@cvs.openbsd.org>2011-09-18 12:01:07 +0000
committerPeter Hessler <phessler@cvs.openbsd.org>2011-09-18 12:01:07 +0000
commit04c5a644d24771f1f8416fa68b5af993c5cffd89 (patch)
treea7a1b8318261c6244320dd33ea9c81904f177d4b /sys/arch
parent17ef7c2b40cf650626ec8feef50877342ada1c28 (diff)
Update the system clock when we resume.
OK miod@
Diffstat (limited to 'sys/arch')
-rw-r--r--sys/arch/loongson/dev/apm.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/arch/loongson/dev/apm.c b/sys/arch/loongson/dev/apm.c
index 66dfcfe7444..58b6cbc1185 100644
--- a/sys/arch/loongson/dev/apm.c
+++ b/sys/arch/loongson/dev/apm.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: apm.c,v 1.9 2011/07/02 22:20:07 nicm Exp $ */
+/* $OpenBSD: apm.c,v 1.10 2011/09/18 12:01:06 phessler Exp $ */
/*-
* Copyright (c) 2001 Alexander Guy. All rights reserved.
@@ -371,6 +371,7 @@ apm_suspend()
if (rv == 0)
rv = sys_platform->resume();
}
+ inittodr(time_second); /* Move the clock forward */
config_suspend(TAILQ_FIRST(&alldevs), DVACT_RESUME);
cold = 0;