summaryrefslogtreecommitdiffstats
path: root/sys/mips/mips/tick.c
diff options
context:
space:
mode:
authormav <mav@FreeBSD.org>2010-07-23 08:20:14 +0000
committermav <mav@FreeBSD.org>2010-07-23 08:20:14 +0000
commit9712144a3f9fd88e1fdf5d780ef7a89530570711 (patch)
tree0bdaf57e12739df0ed446b75297c296764fa4714 /sys/mips/mips/tick.c
parenta39ae55cf406863806960ddf64d069ff79dda61f (diff)
downloadFreeBSD-src-9712144a3f9fd88e1fdf5d780ef7a89530570711.zip
FreeBSD-src-9712144a3f9fd88e1fdf5d780ef7a89530570711.tar.gz
Add some comments.
Diffstat (limited to 'sys/mips/mips/tick.c')
-rw-r--r--sys/mips/mips/tick.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/mips/mips/tick.c b/sys/mips/mips/tick.c
index 06c9aa7..6d0b1c6 100644
--- a/sys/mips/mips/tick.c
+++ b/sys/mips/mips/tick.c
@@ -259,7 +259,7 @@ clock_intr(void *arg)
compare_next = count + cycles_per_tick;
DPCPU_SET(compare_ticks, compare_next);
mips_wr_compare(compare_next);
- } else
+ } else /* In one-shot mode timer should be stopped after the event. */
mips_wr_compare(0xffffffff);
critical_enter();
@@ -352,7 +352,7 @@ clock_attach(device_t dev)
sc->et.et_quality = 800;
sc->et.et_frequency = counter_freq;
sc->et.et_min_period.sec = 0;
- sc->et.et_min_period.frac = 0x00004000LLU << 32;
+ sc->et.et_min_period.frac = 0x00004000LLU << 32; /* To be safe. */
sc->et.et_max_period.sec = 0xfffffffeU / sc->et.et_frequency;
sc->et.et_max_period.frac =
((0xfffffffeLLU << 32) / sc->et.et_frequency) << 32;
OpenPOWER on IntegriCloud