powerpc64: cpu_initclocks: do tc_init(9) before cpu_startclock()
authorcheloha <cheloha@openbsd.org>
Thu, 11 Aug 2022 17:15:21 +0000 (17:15 +0000)
committercheloha <cheloha@openbsd.org>
Thu, 11 Aug 2022 17:15:21 +0000 (17:15 +0000)
commit5cbf2c1d788b602d64e77f269ba0344bf3a947bb
tree803155f3cdd94ef5b25c9049afbde1358d8e023f
parente62200aeef3d2bf14395810c92a54f494ba6774c
powerpc64: cpu_initclocks: do tc_init(9) before cpu_startclock()

In the future, the clock interrupt will need a working timecounter to
accurately reschedule itself.

Move tc_init(9) up before cpu_startclock().

kettenis@ notes several other platforms need this same change.  Maybe
we can do the rest all at once.

Tested by kettenis@.

Link: https://marc.info/?l=openbsd-tech&m=165343754512382&w=2
ok kettenis@
sys/arch/powerpc64/powerpc64/clock.c