summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoruebayasi <uebayasi@openbsd.org>2013-11-13 02:23:33 +0000
committeruebayasi <uebayasi@openbsd.org>2013-11-13 02:23:33 +0000
commita7a8efae65e8953925c39fe067f7506fe61e899e (patch)
treed06d5b1e862e45c21ba1a6f035d756126c86b6e0
parentOops. Use %llu for DL_GETDSIZE() value. (diff)
downloadwireguard-openbsd-a7a8efae65e8953925c39fe067f7506fe61e899e.tar.xz
wireguard-openbsd-a7a8efae65e8953925c39fe067f7506fe61e899e.zip
Honor RB_TIMEBAD on vax too as other ports.
OK miod@
-rw-r--r--sys/arch/vax/vax/machdep.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/sys/arch/vax/vax/machdep.c b/sys/arch/vax/vax/machdep.c
index e5e31a206a6..79f8d4f4bd6 100644
--- a/sys/arch/vax/vax/machdep.c
+++ b/sys/arch/vax/vax/machdep.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: machdep.c,v 1.127 2013/09/28 12:40:32 miod Exp $ */
+/* $OpenBSD: machdep.c,v 1.128 2013/11/13 02:23:33 uebayasi Exp $ */
/* $NetBSD: machdep.c,v 1.108 2000/09/13 15:00:23 thorpej Exp $ */
/*
@@ -526,7 +526,11 @@ boot(howto)
* If we've been adjusting the clock, the todr will be out of
* synch; adjust it now.
*/
- resettodr();
+ if ((howto & RB_TIMEBAD) == 0) {
+ resettodr();
+ } else {
+ printf("WARNING: not updating battery clock\n");
+ }
}
if_downall();