From owner-freebsd-stable@freebsd.org Fri Jul 24 16:50:11 2015 Return-Path: Delivered-To: freebsd-stable@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 378CF9A9A79 for ; Fri, 24 Jul 2015 16:50:11 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-ig0-x233.google.com (mail-ig0-x233.google.com [IPv6:2607:f8b0:4001:c05::233]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 04C771EEC for ; Fri, 24 Jul 2015 16:50:11 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: by igbpg9 with SMTP id pg9so21320585igb.0 for ; Fri, 24 Jul 2015 09:50:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=MNnEhBcrDHS4lov82WeO6mpMzdeyRz19ItqGG/9V9us=; b=xBbQTBupS6RFI3dh4nzYMT1sqA1im0nkFhHfX9mHaE4qM0HRIG4MqMap+4NU6X0Lvm zbQfoXkc+jDmoXN8p3n/3vAWPmgDV9FuUi6Pp21UBZZjIUtKW4eWr1DR/hy4d5XNRz6E Pr0fz50hcQ2pCYWxQAc9Khu4f4KmLQnkdxdcAy2oeEjhD14ee5oPBjaggCcAKpj5z0qV sjRK4urIknUK+m+OaX+tqWMvJGn+Y8EkrqgK7VRqXG/SEcb+bQ3cr2fobyyFKtIlPUND JdnDq3h4h4YI1KnaV5MLZutSfIabX39qbOv+86dN9p0BADuHACnBJmEQWIFYikBcbPua qycA== MIME-Version: 1.0 X-Received: by 10.107.129.215 with SMTP id l84mr23898650ioi.78.1437756610438; Fri, 24 Jul 2015 09:50:10 -0700 (PDT) Received: by 10.36.38.133 with HTTP; Fri, 24 Jul 2015 09:50:10 -0700 (PDT) In-Reply-To: <1568531437753516@web15h.yandex.ru> References: <464641437658995@web16j.yandex.ru> <190031437662308@web29g.yandex.ru> <1437665319.1334.519.camel@freebsd.org> <1568531437753516@web15h.yandex.ru> Date: Fri, 24 Jul 2015 09:50:10 -0700 Message-ID: Subject: Re: struct timehands: th_generation field From: Adrian Chadd To: deco33000@yandex.com Cc: freebsd-stable Content-Type: text/plain; charset=UTF-8 X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 24 Jul 2015 16:50:11 -0000 accessing hardware isn't free. Locking also isn't free. That's why there's this mechanism. -adrian On 24 July 2015 at 08:58, wrote: > > OK. > > I read the document and understood it I guess. > Very interesting, and well engineered. > > On x86/i386/amd64, could not all this be replaced by a simple call to apic timer ? > We would get the timestamp, we can even store it, make calculation on top of it. > > My jugement may miss something important though. That is why I ask :) > > > -- > Jog > _______________________________________________ > freebsd-stable@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-stable > To unsubscribe, send any mail to "freebsd-stable-unsubscribe@freebsd.org"