From owner-svn-src-all@FreeBSD.ORG Thu Jun 23 01:37:39 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 05027106566B; Thu, 23 Jun 2011 01:37:39 +0000 (UTC) (envelope-from mavbsd@gmail.com) Received: from mail-fx0-f54.google.com (mail-fx0-f54.google.com [209.85.161.54]) by mx1.freebsd.org (Postfix) with ESMTP id D89D48FC08; Thu, 23 Jun 2011 01:37:37 +0000 (UTC) Received: by fxm11 with SMTP id 11so1493982fxm.13 for ; Wed, 22 Jun 2011 18:37:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature: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=vEvvDw6MgQlEfTWLVFDXk0NOyv7lzkNgXmW4n1j13Is=; b=LW17x2KEP7TbxAM7qBbERE3stPPjMxB6Pg+kobvuCyQEWaInsNSqCv6AcW3ohpq30l BRTpbWZ4Xo3iFnOKXJHJ/JlqA+O0x7mke+UgZiwD0Jz8FI9PPamdpjYPJ8HAje3+Qnsf g/IHzgXKyslxpRmfTfcoAu58wVJUoJ1zeXezM= DomainKey-Signature: a=rsa-sha1; c=nofws; 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; b=xYRrfNSjKQ72xYI4YDDMb8MYSOxOaTjbVfKUwsIrWmFCn4IJyds6gVLvlnR8myvcob 4tdh7kQDLAkZzbDkALjSl6C687JHrwmSD2H92HvBMBGU0CjgwMY1gYEIvqqBeF2zlNgg jzbA80BECu3uJVwS3VTaMXqH7vqbcMHmrQ35A= Received: by 10.223.98.5 with SMTP id o5mr1810887fan.33.1308793056841; Wed, 22 Jun 2011 18:37:36 -0700 (PDT) Received: from mavbook2.mavhome.dp.ua (pc.mavhome.dp.ua [212.86.226.226]) by mx.google.com with ESMTPS id n15sm663289fag.42.2011.06.22.18.37.34 (version=SSLv3 cipher=OTHER); Wed, 22 Jun 2011 18:37:35 -0700 (PDT) Sender: Alexander Motin Message-ID: <4E02989F.6040703@FreeBSD.org> Date: Thu, 23 Jun 2011 04:36:31 +0300 From: Alexander Motin User-Agent: Thunderbird 2.0.0.23 (X11/20091212) MIME-Version: 1.0 To: Marcel Moolenaar References: <201106221640.p5MGejHY057164@svn.freebsd.org> <4E021C8E.8010904@FreeBSD.org> <201106221455.07540.jkim@FreeBSD.org> <201106221924.50458.jkim@FreeBSD.org> <4E028921.2040805@FreeBSD.org> <8B9DCBA3-C3EC-43EE-8BEC-858A280A2096@xcllnt.net> In-Reply-To: <8B9DCBA3-C3EC-43EE-8BEC-858A280A2096@xcllnt.net> X-Enigmail-Version: 0.96.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: svn-src-head@freebsd.org, svn-src-all@freebsd.org, src-committers@freebsd.org, Andriy Gapon , Jung-uk Kim Subject: Re: svn commit: r223426 - in head/sys: dev/acpica kern sys x86/x86 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: Thu, 23 Jun 2011 01:37:39 -0000 Marcel Moolenaar wrote: > On Jun 22, 2011, at 5:30 PM, Alexander Motin wrote: >> Marcel Moolenaar wrote: >>> On Jun 22, 2011, at 4:24 PM, Jung-uk Kim wrote: >>>> I just realized kern_clocksource.c was excluded for arm and ia64. >>>> Here is updated patch. Please ignore the previous one. >>> Any reason why we're not adding kern_clocksource.c for them? >> Their event timers code still waits for refactoring. I have neither >> documentation nor hardware for them. Help would be appreciated. > > Can you give me a pointer to a document orpage that describes > what is being refactored, why and how? In short, timer management code was unified and formalized. Instead of direct programming periodic timers from MD code and calling hard-/ stat-/ profclock() from there, timer hardware should be exposed to the MI kernel using sys/timeet.h API to allow kern_clocksource.c manage it. Last require calling its cpu_initclocks_bsp() and cpu_initclocks_ap() callbacks from MD initialization code, and cpu_idleclock() and cpu_activeclock() from MD cpu_idle(). Here is some references: man 4 eventtimers http://wiki.freebsd.org/201010DevSummit?action=AttachFile&do=view&target=timers.pdf http://svnweb.freebsd.org/base?view=revision&revision=209371 http://svnweb.freebsd.org/base?view=revision&revision=212541 All architectures except ia64 and non-Marvell arm are already done, so you may took any of them as reference. Ask me if you have any questions. -- Alexander Motin