From owner-freebsd-arch@FreeBSD.ORG Mon Feb 11 20:26:11 2013 Return-Path: Delivered-To: freebsd-arch@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id B39C783E; Mon, 11 Feb 2013 20:26:11 +0000 (UTC) (envelope-from davide.italiano@gmail.com) Received: from mail-vb0-f49.google.com (mail-vb0-f49.google.com [209.85.212.49]) by mx1.freebsd.org (Postfix) with ESMTP id 270CCB91; Mon, 11 Feb 2013 20:26:10 +0000 (UTC) Received: by mail-vb0-f49.google.com with SMTP id s24so3994100vbi.8 for ; Mon, 11 Feb 2013 12:26:10 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type; bh=WE+FRVRzDHJQQCsKL+WNEIvwSv54sw7mP4rLVolaOoc=; b=ZytKT04MsRwG+0hP404mddf9j4o36rLIFhDwanBZzx7L76yM6TnjvUyxmI+Bn0R6CA LauDUVAd8RYrQA2I0tzFIiHk2XAr+nutM7tx1dOZvrXcBWuslK50z7XHopx7k8hsDaAT TS4CPy42H7t4CjoWLlX1zzrQRwPFOFEkpUkjdhGPnswe/jjfK2EJ8ckSCMRuOR49d27E PoISuCUoGBiuBdGJCaPW/gin5WAZag/jaDzBanExzxjMhtTyuCSTkW6HsJxchm3qhXl3 4wTUEbU2ne9mRGv3dI7mezCryOll5KNYxJbJDz/8ggaOCknp2J+HNDI9iyHHitMaKxCF R5xw== MIME-Version: 1.0 X-Received: by 10.52.177.103 with SMTP id cp7mr17781704vdc.113.1360614369927; Mon, 11 Feb 2013 12:26:09 -0800 (PST) Sender: davide.italiano@gmail.com Received: by 10.220.114.134 with HTTP; Mon, 11 Feb 2013 12:26:09 -0800 (PST) In-Reply-To: <20130121095457.GL85306@alchemy.franken.de> References: <50CCAB99.4040308@FreeBSD.org> <50CE5B54.3050905@FreeBSD.org> <50D03173.9080904@FreeBSD.org> <20121225232126.GA47692@alchemy.franken.de> <50DB4EFE.2020600@FreeBSD.org> <20130106152313.GD26039@alchemy.franken.de> <50EBF921.2000304@FreeBSD.org> <20130113180940.GM26039@alchemy.franken.de> <50F30CAB.3000001@FreeBSD.org> <20130121095457.GL85306@alchemy.franken.de> Date: Mon, 11 Feb 2013 21:26:09 +0100 X-Google-Sender-Auth: Ht3NmV0IG4QOr9i4yloaFI5f1mY Message-ID: Subject: Re: [RFC/RFT] calloutng From: Davide Italiano To: Marius Strobl Content-Type: text/plain; charset=ISO-8859-1 Cc: Alexander Motin , FreeBSD Current , Poul-Henning Kamp , freebsd-arch@freebsd.org X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 11 Feb 2013 20:26:11 -0000 [trimmed old mails] Here's a new version of the patch: http://people.freebsd.org/~davide/patches/calloutng-11022012.diff Significant bits changed (after wider discussion and suggestion by phk@): - Introduction of the new sbintime_t type (32.32 fixed point) with the respective conversion (sbintime2bintime, sbintime2timeval etc...) - switch from 64.64 (struct bintime) format to measure time to sbintime_t - Use sbintime_t to represent expected sleep time instead of measuring it in microseconds (cpu_idle_acpi(), cpu_idle_spin() ...). Thanks, Davide