dmtimer(4): switch to clockintr
authorcheloha <cheloha@openbsd.org>
Tue, 17 Jan 2023 02:32:07 +0000 (02:32 +0000)
committercheloha <cheloha@openbsd.org>
Tue, 17 Jan 2023 02:32:07 +0000 (02:32 +0000)
commit9451db9bdc954325e46c6cb65a3bbefcae544878
treeb3d81bc357c6faa054d564e7f301fefaec4caa5a
parentdfaeb4bfd65c52fc48229e52b6fe21c79b43dfd9
dmtimer(4): switch to clockintr

- Strip out custom hardclock/statclock scheduling code.
- Wire up dmtimer_intrclock.
- For convenience, add dmtimer_reset_tisr(); we do the "clear interrupt
  bits" dance in multiple places, may as well put it in a function.
- For parity with other platforms, change stathz from 128 to 100 and
  profhz from 1024 to 1000.

Testing by stuge@ and jsg@.

v1: https://marc.info/?l=openbsd-tech&m=167060320326851&w=2
v2: https://marc.info/?l=openbsd-tech&m=167340009006972&w=2

ok mlarkin@ kettenis@
sys/arch/armv7/omap/dmtimer.c