summaryrefslogtreecommitdiffstats
path: root/sys/mips/mips/tick.c
diff options
context:
space:
mode:
authorimp <imp@FreeBSD.org>2010-01-22 09:55:13 +0000
committerimp <imp@FreeBSD.org>2010-01-22 09:55:13 +0000
commitb8b846aa504306c8c57e1d1777b435b99f915808 (patch)
tree00e9b1b377eaa2fa65f28b0975c96a998841de77 /sys/mips/mips/tick.c
parent60e3675f0f5409e8e8f9197d0c16922f9d7b8b34 (diff)
downloadFreeBSD-src-b8b846aa504306c8c57e1d1777b435b99f915808.zip
FreeBSD-src-b8b846aa504306c8c57e1d1777b435b99f915808.tar.gz
Add a suggested improvement.
Diffstat (limited to 'sys/mips/mips/tick.c')
-rw-r--r--sys/mips/mips/tick.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/mips/mips/tick.c b/sys/mips/mips/tick.c
index b03c4d4..6063275 100644
--- a/sys/mips/mips/tick.c
+++ b/sys/mips/mips/tick.c
@@ -144,6 +144,7 @@ mips_timer_init_params(uint64_t platform_counter_freq, int double_count)
/*
* XXX: Some MIPS32 cores update the Count register only every two
* pipeline cycles.
+ * We know this because of status registers in CP0, make it automatic.
*/
if (double_count != 0)
counter_freq /= 2;
OpenPOWER on IntegriCloud