r1.3 converted the clock rates from kHz to Hz, so we shouldn't multiply by
authorjmatthew <jmatthew@openbsd.org>
Mon, 11 Jul 2022 10:44:08 +0000 (10:44 +0000)
committerjmatthew <jmatthew@openbsd.org>
Mon, 11 Jul 2022 10:44:08 +0000 (10:44 +0000)
1000 to pass the rate to amptimer_set_clockrate().  Fixes the system clock
running too slow for ntpd to keep in sync.

ok patrick@

sys/arch/armv7/marvell/mvacc.c

index 4a01f07..6926aae 100644 (file)
@@ -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;