summaryrefslogtreecommitdiff
path: root/sys/arch/armv7
diff options
context:
space:
mode:
authorJonathan Matthew <jmatthew@cvs.openbsd.org>2022-07-11 10:44:09 +0000
committerJonathan Matthew <jmatthew@cvs.openbsd.org>2022-07-11 10:44:09 +0000
commite90799caa2b9afede91e088f0cc8f9b7f068dbe3 (patch)
tree6bfbd89213fcb4f25ac9570e88583d46760b42ad /sys/arch/armv7
parentc858e6fae9466a3ae4728ae5d8f4821a23e2092e (diff)
r1.3 converted the clock rates from kHz to Hz, so we shouldn't multiply by
1000 to pass the rate to amptimer_set_clockrate(). Fixes the system clock running too slow for ntpd to keep in sync. ok patrick@
Diffstat (limited to 'sys/arch/armv7')
-rw-r--r--sys/arch/armv7/marvell/mvacc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/arch/armv7/marvell/mvacc.c b/sys/arch/armv7/marvell/mvacc.c
index 4a01f076d3e..6926aaef728 100644
--- a/sys/arch/armv7/marvell/mvacc.c
+++ b/sys/arch/armv7/marvell/mvacc.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: mvacc.c,v 1.4 2021/10/24 17:52:27 mpi Exp $ */
+/* $OpenBSD: mvacc.c,v 1.5 2022/07/11 10:44:08 jmatthew Exp $ */
/*
* Copyright (c) 2016 Patrick Wildt <patrick@blueri.se>
*
@@ -115,7 +115,7 @@ mvacc_attach(struct device *parent, struct device *self, void *args)
printf("\n");
- amptimer_set_clockrate(mvacc_get_frequency(sc, &idx) * 1000);
+ amptimer_set_clockrate(mvacc_get_frequency(sc, &idx));
sc->sc_cd.cd_node = sc->sc_node;
sc->sc_cd.cd_cookie = sc;