From owner-freebsd-current@FreeBSD.ORG Thu Sep 2 12:50:31 2010 Return-Path: Delivered-To: freebsd-current@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 6ED47106575F; Thu, 2 Sep 2010 12:50:31 +0000 (UTC) (envelope-from bf1783@googlemail.com) Received: from mail-wy0-f182.google.com (mail-wy0-f182.google.com [74.125.82.182]) by mx1.freebsd.org (Postfix) with ESMTP id D7CBE8FC17; Thu, 2 Sep 2010 12:50:30 +0000 (UTC) Received: by wyb33 with SMTP id 33so263974wyb.13 for ; Thu, 02 Sep 2010 05:50:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:mime-version:received:received:reply-to:date :message-id:subject:from:to:cc:content-type; bh=fnxX/oD4AkNvDWTELtv3318kkA9ywubsurjS7Ch1qws=; b=BOxJrz3PhXxdP92GoirVULqJnfipNlN2k7ZIA1J2t67J7SU4sT4j8UfiKXurvwSVMU nEZFnVSA2IhxuUBEZzvT2iWK0KqlxiX2FBsjYyIFx7/aDZEmj/udHVIN8Pb9jqmPk/vg SbVugaiZ16YQ9UYL8hNHtdv6FUS+1VU0DD84c= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=mime-version:reply-to:date:message-id:subject:from:to:cc :content-type; b=xA0ly8hb4RL+Ffbt44mbTmTRT4Qy8Ls7gBgIiRSDuncVISsSn79Bpe5c2XLnkaT4Di Kkxn6A42PSux4KA3QKKOGUMt5Qzzedn4mBIM82Bdl0ni2zTap5YxKuE6z7EyJxWIW9fA Jexet3dt1S0cP4TEdSL065DEVtSEccefoGCKk= MIME-Version: 1.0 Received: by 10.227.134.136 with SMTP id j8mr9063561wbt.206.1283431830054; Thu, 02 Sep 2010 05:50:30 -0700 (PDT) Received: by 10.216.63.146 with HTTP; Thu, 2 Sep 2010 05:50:29 -0700 (PDT) Date: Thu, 2 Sep 2010 12:50:29 +0000 Message-ID: From: "b. f." To: mav@FreeBSD.org Content-Type: text/plain; charset=ISO-8859-1 Cc: freebsd-current@FreeBSD.org Subject: Re: One-shot-oriented event timers management X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: bf1783@gmail.com List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 02 Sep 2010 12:50:31 -0000 In: http://people.freebsd.org/~mav/timers_oneshot7.patch you need to offset the declaration of 'cpu' in getnextevent() on line 256 of src/sys/kern/kern_clocksource.c by #ifdef SMP, because it is not used otherwise, and will break UP kernel builds with our default warnings and -Werror. Incidentally, do you intend to commit the tm6292_idle.patch along with the new timer code, after testing is satisfactory? Or is this not appropriate for general use? If it isn't suitable for all users, perhaps some of the periods of the events in that patch can be abstracted and made tunable, so that we can make it possible to conserve power, and also keep others happy? Regards, b.