From owner-freebsd-arch@FreeBSD.ORG Tue Sep 7 15:02:59 2010 Return-Path: Delivered-To: freebsd-arch@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 5901610656BA for ; Tue, 7 Sep 2010 15:02:59 +0000 (UTC) (envelope-from cherry@zyx.in) Received: from reagan.nswebhost.com (reagan.nswebhost.com [64.22.87.10]) by mx1.freebsd.org (Postfix) with ESMTP id 0936A8FC1D for ; Tue, 7 Sep 2010 15:02:58 +0000 (UTC) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=default; d=zyx.in; h=Received:Message-ID:Date:From:User-Agent:MIME-Version:To:Subject:References:In-Reply-To:Content-Type:Content-Transfer-Encoding:X-Antivirus:X-Antivirus-Status; b=JKV4yOhRrb/zsT4ucKXdAVJPmcREz5OOUBloAy7YgtPGBun3twrNaATwUS4H+Q12OCfbKQgklSli/RTJLWfX/QUgOjr9A6G6uPmPb7RqKTTgIlqx2m1Lq+66A8bAWxQA; Received: from [59.93.16.111] (port=60608 helo=[127.0.0.1]) by reagan.nswebhost.com with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.69) (envelope-from ) id 1OszQI-0002gt-PO; Tue, 07 Sep 2010 09:45:24 -0500 Message-ID: <4C864FFD.6020409@zyx.in> Date: Tue, 07 Sep 2010 20:15:17 +0530 From: "Cherry G. Mathew" User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-GB; rv:1.9.2.8) Gecko/20100802 Lightning/1.0b2 Thunderbird/3.1.2 MIME-Version: 1.0 To: Alexander Motin , freebsd-arch@freebsd.org References: <4C0C1AE4.8050807@FreeBSD.org> In-Reply-To: <4C0C1AE4.8050807@FreeBSD.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Antivirus: avast! (VPS 100907-0, 09/07/2010), Outbound message X-Antivirus-Status: Clean X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - reagan.nswebhost.com X-AntiAbuse: Original Domain - freebsd.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - zyx.in X-Mailman-Approved-At: Tue, 07 Sep 2010 15:35:06 +0000 Cc: Subject: [resend] Re: RFC: New event timers infrastructure X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 07 Sep 2010 15:02:59 -0000 Dear Alexander, On 6/6/2010 10:02 PM, Alexander Motin wrote: > > I did such things: > - created unified timer driver's API (sys/timeet.h, kernel/kern_et.c). > It supports global and per-CPU timers, periodic and one-shot. Provides > driver and consumer interfaces for choosing timers and operating them; [...] > Latest patches can be found here: > http://people.freebsd.org/~mav/et.20100606.patch > [...] > > Feedback is very appreciated. > Had you considered integrating this api with sys/timetc.h ? Most timer devices which can interrupt after a certain period of time, can also provide counters, I would imagine ? I'd be keen to know your thoughts on providing the ability of et consumers to daisy chain to a single eventtimer. It would be good for et_find() to query for timers that can guarantee a specific resolution/period or below/above. Finally, I'm curious to know what et_quality implies ? Perhaps it can be an indication of the max/min resolution/period available from a given et ? Many Thanks, -- cherry PS: please Cc: me too - I'm not on-list.