From owner-svn-src-all@FreeBSD.ORG Sat Oct 1 11:21:01 2011 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 2B61D106566B; Sat, 1 Oct 2011 11:21:01 +0000 (UTC) (envelope-from mavbsd@gmail.com) Received: from mail-bw0-f54.google.com (mail-bw0-f54.google.com [209.85.214.54]) by mx1.freebsd.org (Postfix) with ESMTP id 044638FC15; Sat, 1 Oct 2011 11:20:59 +0000 (UTC) Received: by bkbzs8 with SMTP id zs8so3362797bkb.13 for ; Sat, 01 Oct 2011 04:20:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=sender:message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:x-enigmail-version:content-type :content-transfer-encoding; bh=DtQJeCY9P9QbUsi6IK/VIbu4kg00+FPwPy7mTdHkJQI=; b=gG076iB8U1kNgOYlyTPl0RHuyL5AnbTdmcPLKYIUL+ezydAbjMfqzQpmVXwK/CrPRb iDNzeY+A+BuJ9IU+/cYKHaurLeKsVVdBaqS8PVe595cwePSUO1hJO0LvyX0lp7jODGCf LCEkPp307dSxuhOupY4y0ko7i5XR9sL+N2NTU= Received: by 10.223.46.89 with SMTP id i25mr20162849faf.34.1317468058768; Sat, 01 Oct 2011 04:20:58 -0700 (PDT) Received: from mavbook2.mavhome.dp.ua (pc.mavhome.dp.ua. [212.86.226.226]) by mx.google.com with ESMTPS id k26sm11092788fab.12.2011.10.01.04.20.57 (version=SSLv3 cipher=OTHER); Sat, 01 Oct 2011 04:20:58 -0700 (PDT) Sender: Alexander Motin Message-ID: <4E86F78B.7050707@FreeBSD.org> Date: Sat, 01 Oct 2011 14:20:43 +0300 From: Alexander Motin User-Agent: Thunderbird 2.0.0.23 (X11/20091212) MIME-Version: 1.0 To: Adrian Chadd References: <201110010556.p915uQH6003016@svn.freebsd.org> In-Reply-To: X-Enigmail-Version: 0.96.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: "Jayachandran C." , svn-src-head@freebsd.org, svn-src-all@freebsd.org, src-committers@freebsd.org Subject: Re: svn commit: r225892 - 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: Sat, 01 Oct 2011 11:21:01 -0000 Adrian Chadd wrote: > On 1 October 2011 15:21, Jayachandran C. wrote: > >> I would like to understand this, reverting r216862 would take out the >> critical_enter() and cpu_idleclock() which would keep the timer >> interrupts coming is as usual, this should not affect the event timer. > > I haven't verified that mav's timer stuff does the correct thing by > configuring the clock timer to occur every 1000hz in this instance. I > kinda hope so. When setting kern.eventtimer.idletick=1, you were effectively disabling cpu_idleclock()/cpu_activeclock() and you've properly received about 1127 timer interrupts per second (mix of 1000 of hz and 127 of stathz). Also when CPU is busy or has high interrupt/context switch rate, that happen automatically, so it definitely works. If you are talking about programming hardware timer for periodic 1000Hz rate, it doesn't happen automatically, because I doubt benefits it gives worth strict aliasing of hardclock() and statclock() it causes. If you like, you can do it manually via kern.eventtimer.periodic=1. -- Alexander Motin