Revert "sh: Kill off now redundant local irq disabling."
authorPaul Mundt <lethal@linux-sh.org>
Tue, 1 Sep 2009 12:12:55 +0000 (21:12 +0900)
committerPaul Mundt <lethal@linux-sh.org>
Tue, 1 Sep 2009 12:12:55 +0000 (21:12 +0900)
commit983f4c514c4c9ddac1077a2c805fd16cbe3f7487
treec0fac3c691139178c545ebe7a8f8eb642937f163
parentade315d83c1d53b3c6b820134cb16601351810fe
Revert "sh: Kill off now redundant local irq disabling."

This reverts commit 64a6d72213dd810dd55bd0a503c36150af41c3c3.

Unfortunately we can't use on_each_cpu() for all of the cache ops, as
some of them only require preempt disabling. This seems to be the same
issue that impacts the mips r4k caches, where this code was based on.
This fixes up a deadlock that showed up in some IRQ context cases.

Signed-off-by: Paul Mundt <lethal@linux-sh.org>
arch/sh/mm/cache-sh2a.c
arch/sh/mm/cache-sh4.c
arch/sh/mm/cache-sh5.c
arch/sh/mm/cache-sh7705.c