From a6cca5d8a1ba9074c37297b90219cb81c25a1147 Mon Sep 17 00:00:00 2001 From: Alexander Motin Date: Fri, 23 Jul 2010 08:20:14 +0000 Subject: [PATCH] Add some comments. --- sys/mips/mips/tick.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/mips/mips/tick.c b/sys/mips/mips/tick.c index 06c9aa705907..6d0b1c67b4f8 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;