public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* Problem with cpu_rest() change
@ 2005-01-24  2:40 Benjamin Herrenschmidt
  2005-01-25  9:01 ` Ingo Molnar
  0 siblings, 1 reply; 6+ messages in thread
From: Benjamin Herrenschmidt @ 2005-01-24  2:40 UTC (permalink / raw)
  To: Ingo Molnar; +Cc: Linux Kernel list

Hi Ingo !

Could you explain me precisely what is the race you are fixing by adding
local_irq_disable() to rest_init() ?

This patch is causing lockups on boot on various ppc machines. I think
i've found at least one possible reason for that in the ppc cpu_idle()
code, which may not re-enable interrupts in some cases when
need_resched() is not set, assuming they were enabled on entry. However,
I'm wondering precisely what exact race you are trying to fix as my fix
would cause IRQs to be re-enabled before the call to schedule() when
need_resched() is not set, which goes against the comment you added to
rest_init() about letting them be re-enable by schedule() itself...

Ben.



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

end of thread, other threads:[~2005-01-26 14:13 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-01-24  2:40 Problem with cpu_rest() change Benjamin Herrenschmidt
2005-01-25  9:01 ` Ingo Molnar
2005-01-25 23:49   ` Benjamin Herrenschmidt
2005-01-26  5:45     ` Kumar Gala
2005-01-26 13:44       ` Benjamin Herrenschmidt
2005-01-26 14:10         ` Kumar Gala

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