riscv64: cpu_initclocks: install tb_timecounter before cpu_startclock()
authorcheloha <cheloha@openbsd.org>
Thu, 8 Sep 2022 03:09:40 +0000 (03:09 +0000)
committercheloha <cheloha@openbsd.org>
Thu, 8 Sep 2022 03:09:40 +0000 (03:09 +0000)
commitb168b2fee5d9b3e3e348e6289c4398471e43947a
treeb8faa2403edc437d3345484c39f2bd8c34f2574e
parentb0c307ff42a7c5db766e6720b731cebd0381ff83
riscv64: cpu_initclocks: install tb_timecounter before cpu_startclock()

In the future, the clock interrupt code will need a real timecounter
to work correctly.  Nudge the tc_init(9) call for tb_timecounter up
before cpu_startclock().
sys/arch/riscv64/riscv64/clock.c