From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S966348AbXDGUtv (ORCPT ); Sat, 7 Apr 2007 16:49:51 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S966345AbXDGUtt (ORCPT ); Sat, 7 Apr 2007 16:49:49 -0400 Received: from www.osadl.org ([213.239.205.134]:55331 "EHLO mail.tglx.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S966344AbXDGUts (ORCPT ); Sat, 7 Apr 2007 16:49:48 -0400 Subject: Re: [PATCH] timekeeping: drop irq-context clocksource polling From: Thomas Gleixner Reply-To: tglx@linutronix.de To: Daniel Walker Cc: Andrew Morton , linux-kernel@vger.kernel.org, johnstul@us.ibm.com, mingo@elte.hu In-Reply-To: <1175967839.15973.156.camel@imap.mvista.com> References: <20070405210316.785839431@mvista.com> <20070407031922.ee49478f.akpm@linux-foundation.org> <1175967839.15973.156.camel@imap.mvista.com> Content-Type: text/plain Date: Sat, 07 Apr 2007 22:50:19 +0200 Message-Id: <1175979019.28263.523.camel@localhost.localdomain> Mime-Version: 1.0 X-Mailer: Evolution 2.6.1 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org On Sat, 2007-04-07 at 10:43 -0700, Daniel Walker wrote: > Looks like this path , > > arch/i386/kernel/tsc.c: time_cpufreq_notifier(); <-- takes xtime_lock > mark_tsc_unstable(); > clocksource_change_rating(&clocksource_tsc, 0); > timekeeping_change_clocksource(); <-- takes xtime_lock > > > I'm not sure why the time_cpufreq_notifier is taking the xtime_lock tho . Simply because it fiddles with variables which are relevant for timekeeping. tglx