gptimer(4): switch to clockintr
authorcheloha <cheloha@openbsd.org>
Wed, 25 Jan 2023 14:14:39 +0000 (14:14 +0000)
committercheloha <cheloha@openbsd.org>
Wed, 25 Jan 2023 14:14:39 +0000 (14:14 +0000)
commit7c601e62aaac9d63b4ccf68f98d354af760b41a9
tree7ebaf54463c7206697d8ab0135d078b043277a5e
parent9356e752d591198118cf8bef06371fbd332b5a91
gptimer(4): switch to clockintr

- Remove custom clock interrupt scheduling code.
- Remove local evcount structs.
- Wire up gptimer_intrclock.
- Switch stathz from 128 to hz
- Switch profhz from 1024 to (stathz * 10).

This change is untested.  Nobody seems to have hardware that actually uses
the gptimer(4) as an interrupt clock.  If this patch doesn't work, the driver
is probably not too distant from a working state.

Compile-tested by jca@.  Discussed with kettenis@, jca@, drahn@, patrick@,
jsg@, and uwe@.

Link: https://marc.info/?l=openbsd-tech&m=167451333419815&w=2
ok patrick@ kettenis@
sys/arch/armv7/omap/gptimer.c