From owner-svn-src-all@FreeBSD.ORG Fri Jul 23 08:20:14 2010 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 91E50106566B; Fri, 23 Jul 2010 08:20:14 +0000 (UTC) (envelope-from mav@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 816528FC16; Fri, 23 Jul 2010 08:20:14 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.3/8.14.3) with ESMTP id o6N8KEMj031263; Fri, 23 Jul 2010 08:20:14 GMT (envelope-from mav@svn.freebsd.org) Received: (from mav@localhost) by svn.freebsd.org (8.14.3/8.14.3/Submit) id o6N8KEIi031261; Fri, 23 Jul 2010 08:20:14 GMT (envelope-from mav@svn.freebsd.org) Message-Id: <201007230820.o6N8KEIi031261@svn.freebsd.org> From: Alexander Motin Date: Fri, 23 Jul 2010 08:20:14 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r210404 - head/sys/mips/mips X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 23 Jul 2010 08:20:14 -0000 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;