Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S262730AbTKEDCy (ORCPT ); Tue, 4 Nov 2003 22:02:54 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S262736AbTKEDCy (ORCPT ); Tue, 4 Nov 2003 22:02:54 -0500 Received: from mail-09.iinet.net.au ([203.59.3.41]:62616 "HELO mail.iinet.net.au") by vger.kernel.org with SMTP id S262730AbTKEDCx (ORCPT ); Tue, 4 Nov 2003 22:02:53 -0500 Message-ID: <3FA86859.8040306@cyberone.com.au> Date: Wed, 05 Nov 2003 14:02:49 +1100 From: Nick Piggin User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.4) Gecko/20030827 Debian/1.4-3 X-Accept-Language: en MIME-Version: 1.0 To: Linus Torvalds CC: john stultz , Joel Becker , lkml , Marcelo Tosatti Subject: Re: get_cycles() on i386 References: <3FA86645.7030302@cyberone.com.au> In-Reply-To: <3FA86645.7030302@cyberone.com.au> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1043 Lines: 35 Nick Piggin wrote: > > > Linus Torvalds wrote: > >> On 4 Nov 2003, john stultz wrote: >> >>> CONFIG_X86_TSC be the devil. Personally, I'd much prefer dropping the >>> compile time option and using dynamic detection. Something like (not >>> recently tested and i believe against 2.5.something, but you get the >>> idea): >>> >> >> Some of the users are really timing-critical (eg scheduler). >> > > The scheduler uses its own sched_clock which only gives jiffies > resolution if CONFIG_NUMA is defined. Unfortunate because I think > its interactive behaviour isn't so good with ms resolution. > > The scheduler does not need to have synchronised TSCs though, I think. > It just means 2 more calls to sched_clock in a slow path (smp migration). > Well no, its much trickier than that I think :( - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/