public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH -mm] fix jiffies clocksource inittime
@ 2007-04-04 19:50 john stultz
  2007-04-04 20:43 ` Andrew Morton
  0 siblings, 1 reply; 7+ messages in thread
From: john stultz @ 2007-04-04 19:50 UTC (permalink / raw)
  To: Andrew Morton; +Cc: lkml, Thomas Gleixner, Ingo Molnar, Andi Kleen

Andrew,
	In debugging a problem w/ the -rt tree, I noticed that on systems that
mark the tsc as unstable before it is registered, the TSC would still be
selected and used for a short period of time. Digging in it looks to be
a result of the mix of the clocksource list changes and my clocksource
initialization changes.

With the -rt tree, using a bad TSC, even for a short period of time can
results in a hang at boot. I was not able to reproduce this hang w/
mainline, but I'm not completely certain that someone won't trip on it.

This patch resolves the issue by initializing the jiffies clocksource
earlier so a bad TSC won't get selected just because nothing else is yet
registered.

thanks
-john

Signed-off-by: John Stultz <johnstul@us.ibm.com>

diff --git a/kernel/time/jiffies.c b/kernel/time/jiffies.c
index 3be8da8..4c256fd 100644
--- a/kernel/time/jiffies.c
+++ b/kernel/time/jiffies.c
@@ -69,4 +69,4 @@ static int __init init_jiffies_clocksour
 	return clocksource_register(&clocksource_jiffies);
 }
 
-module_init(init_jiffies_clocksource);
+core_initcall(init_jiffies_clocksource);



^ permalink raw reply related	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2007-04-04 21:39 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-04-04 19:50 [PATCH -mm] fix jiffies clocksource inittime john stultz
2007-04-04 20:43 ` Andrew Morton
2007-04-04 20:46   ` Thomas Gleixner
2007-04-04 20:53   ` john stultz
2007-04-04 21:04     ` Andrew Morton
2007-04-04 21:23   ` Ingo Molnar
2007-04-04 21:32     ` Andrew Morton

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox