summaryrefslogtreecommitdiffstats
path: root/sys/kern/kern_ntptime.c
diff options
context:
space:
mode:
authorpeter <peter@FreeBSD.org>2003-01-06 01:01:08 +0000
committerpeter <peter@FreeBSD.org>2003-01-06 01:01:08 +0000
commitaf85e6b2d6cbb0bfeb1d71c20e0e67bc98e06938 (patch)
tree6947f4bff4f01841dd702ee9d6fe18a342e7b383 /sys/kern/kern_ntptime.c
parent8c2352be36eb0299ffa3ed1e05dd83968a08696f (diff)
downloadFreeBSD-src-af85e6b2d6cbb0bfeb1d71c20e0e67bc98e06938.zip
FreeBSD-src-af85e6b2d6cbb0bfeb1d71c20e0e67bc98e06938.tar.gz
Explicitly have the timecounter init happen after the cpu_initclocks is
called. Otherwise (depending on a non-deterministic sort), the timecounter code can be initialized before the clock rate has been set (on ia64) and it assumes hz = 100, rather than the real value of 1024. I'm not sure how much gets upset by this. Glanced at by: phk
Diffstat (limited to 'sys/kern/kern_ntptime.c')
-rw-r--r--sys/kern/kern_ntptime.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/kern/kern_ntptime.c b/sys/kern/kern_ntptime.c
index 26467d8..016c1d6 100644
--- a/sys/kern/kern_ntptime.c
+++ b/sys/kern/kern_ntptime.c
@@ -596,7 +596,7 @@ ntp_init()
#endif /* PPS_SYNC */
}
-SYSINIT(ntpclocks, SI_SUB_CLOCKS, SI_ORDER_FIRST, ntp_init, NULL)
+SYSINIT(ntpclocks, SI_SUB_CLOCKS, SI_ORDER_MIDDLE, ntp_init, NULL)
/*
* hardupdate() - local clock update
OpenPOWER on IntegriCloud