From: john stultz <johnstul@us.ibm.com>
To: Andrew Morton <akpm@linux-foundation.org>
Cc: lkml <linux-kernel@vger.kernel.org>,
Thomas Gleixner <tglx@linutronix.de>, Ingo Molnar <mingo@elte.hu>,
Andi Kleen <ak@muc.de>
Subject: Re: [PATCH -mm] fix jiffies clocksource inittime
Date: Wed, 04 Apr 2007 13:53:47 -0700 [thread overview]
Message-ID: <1175720027.17711.69.camel@localhost> (raw)
In-Reply-To: <20070404134310.12ad3ab8.akpm@linux-foundation.org>
On Wed, 2007-04-04 at 13:43 -0700, Andrew Morton wrote:
> On Wed, 04 Apr 2007 12:50:15 -0700
> john stultz <johnstul@us.ibm.com> wrote:
>
> > 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);
>
> Do you think this is needed in 2.6.21?
>
> If so: worrisome. Startup ordering issues are fragile and tricky. Time
> management is fragile and tricky. The combination of the two doesn't get
> any better ;)
Its likely low-risk, however I'm pretty cautious this close to release.
> An option would be to test it in 2.6.22-rcX for a while, then backport to
> 2.6.21.x.
I'm fine with this (also getting it into the next -mm would help). But
I'd defer to others with stronger opinions.
thanks
-john
next prev parent reply other threads:[~2007-04-04 20:53 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
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 [this message]
2007-04-04 21:04 ` Andrew Morton
2007-04-04 21:23 ` Ingo Molnar
2007-04-04 21:32 ` Andrew Morton
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1175720027.17711.69.camel@localhost \
--to=johnstul@us.ibm.com \
--cc=ak@muc.de \
--cc=akpm@linux-foundation.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mingo@elte.hu \
--cc=tglx@linutronix.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox