From 201a398dd0c094ae21da4fac2626ca72e15ce897 Mon Sep 17 00:00:00 2001 From: jmatthew Date: Mon, 11 Jul 2022 10:44:08 +0000 Subject: [PATCH] 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@ --- sys/arch/armv7/marvell/mvacc.c | 4 ++-- 1 file 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 * @@ -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; -- 2.20.1