From 04c5a644d24771f1f8416fa68b5af993c5cffd89 Mon Sep 17 00:00:00 2001 From: Peter Hessler Date: Sun, 18 Sep 2011 12:01:07 +0000 Subject: Update the system clock when we resume. OK miod@ --- sys/arch/loongson/dev/apm.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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; -- cgit v1.2.3