Re: [patch] high-res timers: UP resume fix

From: Pavel Machek
Date: Wed Apr 11 2007 - 10:17:09 EST


Hi!

> > > > [...] Soeren, can you confirm that you are using a !CONFIG_SMP kernel,
> > > > and if yes, does the patch below fix the resume problem for you?
> > >
> > > hm, you seem to have a CONFIG_SMP=y kernel. I dont immediately see where
> > > we re-enable interrupts in the SMP case, but could you try my patch
> > > nevertheless
> >
> > We do in on_each_cpu() unconditionally. I missed that.
>
> BTW, the on_each_cpu() in clock_was_set() is unnecessary, because
> timekeeping_resume() is always run on one CPU.

I wonder if we should add BUG_ON(interrupts_enabled) just before
enabling interrupts to catch similar mistakes early?

Pavel
--
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/