diff options
author | Scott Soule Cheloha <cheloha@cvs.openbsd.org> | 2023-01-27 22:16:53 +0000 |
---|---|---|
committer | Scott Soule Cheloha <cheloha@cvs.openbsd.org> | 2023-01-27 22:16:53 +0000 |
commit | 4c8c30f8c79d0a378ecbb051b5145d510723f2e7 (patch) | |
tree | d96beb7279da24e1092592d24a8f43bc53dab0d8 /sys/arch/armv7 | |
parent | fb4eeba3b7ea38017d040323fba7263438521d07 (diff) |
dmtimer(4): initialize stathz, profhz as other drivers, platforms do
Don't hardcode stathz to 100 and profhz to 1000. Instead, set stathz
to hz and profhz to (stathz * 10). This is what we do in all other
armv7 clock interrupt drivers and most other platforms.
Link: https://marc.info/?l=openbsd-tech&m=167479021815637&w=2
ok kettenis@
Diffstat (limited to 'sys/arch/armv7')
-rw-r--r-- | sys/arch/armv7/omap/dmtimer.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/arch/armv7/omap/dmtimer.c b/sys/arch/armv7/omap/dmtimer.c index 33e47bbde56..7e0436b0ada 100644 --- a/sys/arch/armv7/omap/dmtimer.c +++ b/sys/arch/armv7/omap/dmtimer.c @@ -1,4 +1,4 @@ -/* $OpenBSD: dmtimer.c,v 1.16 2023/01/17 02:32:07 cheloha Exp $ */ +/* $OpenBSD: dmtimer.c,v 1.17 2023/01/27 22:16:52 cheloha Exp $ */ /* * Copyright (c) 2007,2009 Dale Rahn <drahn@openbsd.org> * Copyright (c) 2013 Raphael Graf <r@undefined.ch> @@ -230,8 +230,8 @@ dmtimer_cpu_initclocks(void) { struct dmtimer_softc *sc = dmtimer_cd.cd_devs[1]; - stathz = 100; - profhz = 1000; + stathz = hz; + profhz = stathz * 10; clockintr_init(CL_RNDSTAT); sc->sc_ticks_per_second = TIMER_FREQUENCY; /* 32768 */ |