[MIPS] Fix deadlock on MP with cache aliases.
authorRalf Baechle <ralf@linux-mips.org>
Fri, 12 May 2006 12:20:06 +0000 (13:20 +0100)
committerRalf Baechle <ralf@linux-mips.org>
Wed, 31 May 2006 23:28:33 +0000 (00:28 +0100)
commit7f3f1d01a9020cff2cb2390aaee3f8df0d70e203
tree222c7f054eccce1b98fac8ceafa8dde2afd6b63f
parent78665aaa96fe62b4cee6c226680801c4480aa407
[MIPS] Fix deadlock on MP with cache aliases.

A proper fix would involve introducing the notion of shared caches but
at this stage of 2.6.17 that's going to be too intrusive and not needed
for current hardware; aside I think some discussion will be needed.

So for now on the affected SMP configurations which happen to suffer from
cache aliases we make use of the fact that a single cache will be shared
by all processors.  This solves the deadlock issue and will improve
performance by getting rid of the smp_call_function overhead.

Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
arch/mips/mm/c-r4k.c