powerpc64: switch to clockintr
authorcheloha <cheloha@openbsd.org>
Tue, 29 Nov 2022 01:04:44 +0000 (01:04 +0000)
committercheloha <cheloha@openbsd.org>
Tue, 29 Nov 2022 01:04:44 +0000 (01:04 +0000)
commitaca18452b3e5efd8fd47a100cc3cfd33ce5c9671
tree07a3bb06f9a6535ec4cebfed38d9d8db8ca0ce1e
parent9d06d93cdcec29b480c5d9140c5b936db1b962be
powerpc64: switch to clockintr

- Remove powerpc64-specific clock interrupt scheduling bits from
  cpu_info.
- Remove powerpc64-specific randomized statclock() bits from
  powerpc64/clock.c.
- Remove the 'stat_count' evcount.  All clock interrupts are now counted
  via the 'clock_count' evcount.
- Wire up dec_intrclock.

Bringup help from gkoehler@.  Tested by gkoehler@: this patch has
survived four kernel-release-upgrade cycles on a Raptor Talos II
T2P9S01 sporting a quad-core POWER9 CPU.

Link: https://marc.info/?l=openbsd-tech&m=166776404803622&w=2
ok gkoehler@ mlarkin@
sys/arch/powerpc64/include/_types.h
sys/arch/powerpc64/include/cpu.h
sys/arch/powerpc64/powerpc64/clock.c