Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 23 Jul 2010 08:20:14 +0000 (UTC)
From:      Alexander Motin <mav@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r210404 - head/sys/mips/mips
Message-ID:  <201007230820.o6N8KEIi031261@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: mav
Date: Fri Jul 23 08:20:14 2010
New Revision: 210404
URL: http://svn.freebsd.org/changeset/base/210404

Log:
  Add some comments.

Modified:
  head/sys/mips/mips/tick.c

Modified: head/sys/mips/mips/tick.c
==============================================================================
--- head/sys/mips/mips/tick.c	Fri Jul 23 07:46:55 2010	(r210403)
+++ head/sys/mips/mips/tick.c	Fri Jul 23 08:20:14 2010	(r210404)
@@ -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;



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201007230820.o6N8KEIi031261>