From: Benjamin Herrenschmidt Date: Mon, 26 Oct 2009 19:41:17 +0000 (+0000) Subject: powerpc/ppc64: Use preempt_schedule_irq instead of preempt_schedule X-Git-Tag: v2.6.32-rc6~46^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4f917ba3d5ee9c98d60fa357e799942df8412de3;p=pandora-kernel.git powerpc/ppc64: Use preempt_schedule_irq instead of preempt_schedule Based on an original patch by Valentine Barshak Use preempt_schedule_irq to prevent infinite irq-entry and eventual stack overflow problems with fast-paced IRQ sources. This kind of problems has been observed on the PASemi Electra IDE controller. We have to make sure we are soft-disabled before calling preempt_schedule_irq and hard disable interrupts after that to avoid unrecoverable exceptions. This patch also moves the "clrrdi r9,r1,THREAD_SHIFT" out of the #ifdef CONFIG_PPC_BOOK3E scope, since r9 is clobbered and has to be restored in both cases. Signed-off-by: Benjamin Herrenschmidt --- Reading git-diff-tree failed