summaryrefslogtreecommitdiffstats
path: root/sys/ia64
diff options
context:
space:
mode:
authormarcel <marcel@FreeBSD.org>2011-06-07 01:06:49 +0000
committermarcel <marcel@FreeBSD.org>2011-06-07 01:06:49 +0000
commit2bf7ed6fc0e8d175dd13da2f68d538ee3facb919 (patch)
tree35a2c60d126df166d237de0c07f0f113ce080458 /sys/ia64
parent9a4ce80d984022d858758d706b82b9ee8f31455d (diff)
downloadFreeBSD-src-2bf7ed6fc0e8d175dd13da2f68d538ee3facb919.zip
FreeBSD-src-2bf7ed6fc0e8d175dd13da2f68d538ee3facb919.tar.gz
Call set_cputicker() to have the time counter use the ITC register.
Note that the ITC frequency is fixed.
Diffstat (limited to 'sys/ia64')
-rw-r--r--sys/ia64/ia64/machdep.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/ia64/ia64/machdep.c b/sys/ia64/ia64/machdep.c
index fc7df7a..1463fb5 100644
--- a/sys/ia64/ia64/machdep.c
+++ b/sys/ia64/ia64/machdep.c
@@ -786,6 +786,8 @@ ia64_init(void)
ia64_sal_init();
calculate_frequencies();
+ set_cputicker(ia64_get_itc, (u_long)itc_freq * 1000000, 0);
+
/*
* Setup the PCPU data for the bootstrap processor. It is needed
* by printf(). Also, since printf() has critical sections, we
OpenPOWER on IntegriCloud