From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S940851AbXGSSAj (ORCPT ); Thu, 19 Jul 2007 14:00:39 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1759893AbXGSSAT (ORCPT ); Thu, 19 Jul 2007 14:00:19 -0400 Received: from cantor2.suse.de ([195.135.220.15]:39132 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750727AbXGSSAS (ORCPT ); Thu, 19 Jul 2007 14:00:18 -0400 From: Andi Kleen Organization: SUSE Linux Products GmbH, Nuernberg, GF: Markus Rex, HRB 16746 (AG Nuernberg) To: Daniel Walker Subject: Re: [PATCH] [15/58] i386: Rewrite sched_clock Date: Thu, 19 Jul 2007 20:00:12 +0200 User-Agent: KMail/1.9.6 Cc: patches@x86-64.org, linux-kernel@vger.kernel.org References: <200707191154.642492000@suse.de> <200707191938.18988.ak@suse.de> <1184867029.6458.40.camel@dhcp193.mvista.com> In-Reply-To: <1184867029.6458.40.camel@dhcp193.mvista.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-15" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200707192000.13164.ak@suse.de> Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org On Thursday 19 July 2007 19:43:49 Daniel Walker wrote: > On Thu, 2007-07-19 at 19:38 +0200, Andi Kleen wrote: > > On Thursday 19 July 2007 19:31:56 Daniel Walker wrote: > > > > > >From my perspective a downside to sched_clock is that the math is > > > duplicated per architecture .. I think it would be a win to use the > > > generic functions if it's possible.. > > > > They can't be used because they're not cpu local. The whole basic > > concept behind the new sched_clock is to be cpu local. > > Your not following me .. Because you don't make much sense. You're really asking me to factor an single multiplication and a shift (two CPU instructions!) out to share? -Andi