sxitimer(4): switch to clockintr
authorcheloha <cheloha@openbsd.org>
Tue, 17 Jan 2023 02:38:59 +0000 (02:38 +0000)
committercheloha <cheloha@openbsd.org>
Tue, 17 Jan 2023 02:38:59 +0000 (02:38 +0000)
commit1286a7b8306d2163b7b474e08048c0e2af3ed41e
tree0f2e4f2bfb0858bbfee36a7758c734a1d3f1a992
parent9451db9bdc954325e46c6cb65a3bbefcae544878
sxitimer(4): switch to clockintr

- Strip out custom hardclock/statclock scheduling code.
- Stop using STATTIMER.  We can multiplex TICKTIMER to handle all
  clock interrupts.
- Wire up sxitimer_intrclock.
- For parity with other platforms, change stathz from 128 to hz and
  change profhz from 1024 to (stathz * 10).

Tested by kettenis@.

Link: https://marc.info/?l=openbsd-tech&m=167060659329137&w=2
ok kettenis@
sys/arch/armv7/sunxi/sxitimer.c