From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Howells Subject: Re: [PATCH] convert cnt32_to_63 to inline Date: Tue, 11 Nov 2008 22:31:42 +0000 Message-ID: <8896.1226442702@redhat.com> References: <20081111182759.GA8052@Krystal> <20081109064855.GA23782@Krystal> <20081109162250.GB10181@Krystal> <20081109204256.89ab7925.akpm@linux-foundation.org> <20081110135850.0d620f3c.akpm@linux-foundation.org> <20081110152221.64948d23.akpm@linux-foundation.org> Return-path: Received: from mx2.redhat.com ([66.187.237.31]:44046 "EHLO mx2.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754570AbYKKWco (ORCPT ); Tue, 11 Nov 2008 17:32:44 -0500 In-Reply-To: <20081111182759.GA8052@Krystal> Sender: linux-arch-owner@vger.kernel.org List-ID: To: Mathieu Desnoyers Cc: dhowells@redhat.com, Nicolas Pitre , Andrew Morton , torvalds@linux-foundation.org, rmk+lkml@arm.linux.org.uk, mingo@elte.hu, a.p.zijlstra@chello.nl, linux-kernel@vger.kernel.org, ralf@linux-mips.org, benh@kernel.crashing.org, paulus@samba.org, davem@davemloft.net, mingo@redhat.com, tglx@linutronix.de, rostedt@goodmis.org, linux-arch@vger.kernel.org Mathieu Desnoyers wrote: > @@ -52,18 +57,22 @@ unsigned long long sched_clock(void) > ... > + preempt_disable_notrace(); Please, no! sched_clock() is called with preemption or interrupts disabled everywhere except from some debugging code (lock tracing IIRC). If you need to insert this preemption disablement somewhere, please insert it there. At least then sched_clock() will be called consistently. David