sparc64: switch to clockintr
authorcheloha <cheloha@openbsd.org>
Fri, 13 Jan 2023 03:22:18 +0000 (03:22 +0000)
committercheloha <cheloha@openbsd.org>
Fri, 13 Jan 2023 03:22:18 +0000 (03:22 +0000)
commit573d576bb86cdbebdf6a759cb15aa35c48726fe3
tree9e6391f4ce380de5f6c485635dac5183d2f8131d
parentd6bc16dec33a2924f71d34f5439039d494aad7aa
sparc64: switch to clockintr

- Remove all use of timer(4/sparc64) from sparc64/clock.c.
- Don't map interrupts in timer_match(), effectively disabling
  timer(4/sparc64).  The driver will be completely removed in a
  later commit.
- Wire up tick_intrclock, stick_intrclock, and sys_tick_intrclock.
- All sparc64 machines now have a randomized statclock; stathz = hz,
  profhz = stathz * 10.

Very special thanks to miod@, without whom this would have been impossible.

sun4v testing by kmos@, mlarkin@, and kn@.  sun4u testing (%tick and the
oddball USIIe %stick) by miod@.  With input from miod@, mlarkin@, and
kettenis@.

v1: https://marc.info/?l=openbsd-tech&m=166776418803680&w=2
v2: https://marc.info/?l=openbsd-tech&m=167287772220176&w=2
v3: https://marc.info/?l=openbsd-tech&m=167322011602530&w=2

ok mlarkin@ kettenis@ miod@
sys/arch/sparc64/include/_types.h
sys/arch/sparc64/include/cpu.h
sys/arch/sparc64/sparc64/clock.c