Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754700AbXLHAvS (ORCPT ); Fri, 7 Dec 2007 19:51:18 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1752754AbXLHAvF (ORCPT ); Fri, 7 Dec 2007 19:51:05 -0500 Received: from smtp107.mail.mud.yahoo.com ([209.191.85.217]:26729 "HELO smtp107.mail.mud.yahoo.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with SMTP id S1752079AbXLHAvD (ORCPT ); Fri, 7 Dec 2007 19:51:03 -0500 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com.au; h=Received:X-YMail-OSG:From:To:Subject:Date:User-Agent:Cc:References:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding:Content-Disposition:Message-Id; b=huGlxUNWjO0Ms6aSIXBf7F2WJE37uuiMA52EGuYoBpAC/G49MU801UrrPuCEmYShCG40yPbrjTpSKKbWmPLNMtzJHPauPqHJGqfDnR4H476ll6+KNJNy9Xlz6APkViMkbCWG0CcPbIpAtxwYivVg+QulGPq1Pfyi91MLv7T5QkE= ; X-YMail-OSG: WXJh2xoVM1kPwnm5JtrJqhZkHq58D7le5YdUk1UM18mDFK4A.mEC9mAKFNEADM9Dp4CJJB.n.g-- From: Nick Piggin To: Ingo Molnar Subject: Re: [PATCH] scheduler: fix x86 regression in native_sched_clock Date: Sat, 8 Dec 2007 11:50:50 +1100 User-Agent: KMail/1.9.5 Cc: Stefano Brivio , Robert Love , linux-kernel@vger.kernel.org, Dave Jones , "Rafael J. Wysocki" , Michael Buesch , Thomas Gleixner , Andrew Morton , Len Brown References: <20071207021952.6f0ac922@morte> <20071207111720.GA10543@elte.hu> <200712080348.53117.nickpiggin@yahoo.com.au> In-Reply-To: <200712080348.53117.nickpiggin@yahoo.com.au> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200712081150.50737.nickpiggin@yahoo.com.au> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1341 Lines: 30 On Saturday 08 December 2007 03:48, Nick Piggin wrote: > On Friday 07 December 2007 22:17, Ingo Molnar wrote: > > * Nick Piggin wrote: > > > > ah, printk_clock() still uses sched_clock(), not jiffies. So it's > > > > not the jiffies counter that goes back and forth, it's sched_clock() > > > > - so this is a printk timestamps anomaly, not related to jiffies. I > > > > thought we have fixed this bug in the printk code already: > > > > sched_clock() is a 'raw' interface that should not be used directly > > > > - the proper interface is cpu_clock(cpu). > > > > > > It's a single CPU box, so sched_clock() jumping would still be > > > problematic, no? > > > > sched_clock() is an internal API - the non-jumping API to be used by > > printk is cpu_clock(). > > You know why sched_clock jumps when the TSC frequency changes, right? Ah, hmm, I don't know why I wrote that :) I guess your patch is fairly complex but it should work if the plan is to convert all sched_clock users to use cpu_clock eg like lockdep as well. So it looks good to me, thanks for fixing this. -- 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/