riscv64: switch to clockintr
authorcheloha <cheloha@openbsd.org>
Sat, 19 Nov 2022 16:02:37 +0000 (16:02 +0000)
committercheloha <cheloha@openbsd.org>
Sat, 19 Nov 2022 16:02:37 +0000 (16:02 +0000)
commitfa086fd2b58313156e4f69f5c66249130c1733cf
treef3ab06c77f2104f0aecf0ebd5eda5f109399be3c
parentc85fe6effa8fa2bb738d91584b44bf73704d1f6d
riscv64: switch to clockintr

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

With input from jca@, kettenis@.  Tested by jca@.

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