android_kernel_motorola_sm6225/arch/powerpc
David Gibson 6210230725 [POWERPC] Cleanup and fix breakage in tlbflush.h
BenH's commit a741e67969 in powerpc.git,
although (AFAICT) only intended to affect ppc64, also has side-effects
which break 44x.  I think 40x, 8xx and Freescale Book E are also
affected, though I haven't tested them.

The problem lies in unconditionally removing flush_tlb_pending() from
the versions of flush_tlb_mm(), flush_tlb_range() and
flush_tlb_kernel_range() used on ppc64 - which are also used the
embedded platforms mentioned above.

The patch below cleans up the convoluted #ifdef logic in tlbflush.h,
in the process restoring the necessary flushes for the software TLB
platforms.  There are three sets of definitions for the flushing
hooks: the software TLB versions (revised to avoid using names which
appear to related to TLB batching), the 32-bit hash based versions
(external functions) amd the 64-bit hash based versions (which
implement batching).

It also moves the declaration of update_mmu_cache() to always be in
tlbflush.h (previously it was in tlbflush.h except for PPC64, where it
was in pgtable.h).

Booted on Ebony (440GP) and compiled for 64-bit and 32-bit
multiplatform.

Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Acked-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Paul Mackerras <paulus@samba.org>
2007-04-24 22:08:56 +10:00
..
boot [POWERPC] Fix comment typo in Kurobox device tree 2007-04-24 22:06:56 +10:00
configs [POWERPC] Rename MPIC_BROKEN_U3 to MPIC_U3_HT_IRQS 2007-04-24 22:06:58 +10:00
kernel [POWERPC] Save trap number in bad_stack 2007-04-24 22:06:59 +10:00
lib [POWERPC] Emulate more instructions in software 2007-04-24 21:31:57 +10:00
math-emu [POWERPC] ppc math-emu needs -fno-builtin-fabs for math.c and fabs.c 2006-09-26 15:24:35 +10:00
mm [POWERPC] Cleanup and fix breakage in tlbflush.h 2007-04-24 22:08:56 +10:00
oprofile [POWERPC] pasemi: PA6T oprofile support 2007-04-24 21:31:51 +10:00
platforms [POWERPC] Rename MPIC_BROKEN_U3 to MPIC_U3_HT_IRQS 2007-04-24 22:06:58 +10:00
sysdev [POWERPC] Rename MPIC_BROKEN_U3 to MPIC_U3_HT_IRQS 2007-04-24 22:06:58 +10:00
xmon [POWERPC] Allow xmon to build without CONFIG_DEBUG_BUGVERBOSE 2007-03-09 15:03:26 +11:00
.gitignore [POWERPC] Add files build to .gitignore 2006-12-04 20:41:29 +11:00
Kconfig [POWERPC] bootwrapper: Add CONFIG_DEVICE_TREE 2007-04-24 21:31:53 +10:00
Kconfig.debug [POWERPC] DEBUG_PAGEALLOC for 64-bit 2007-04-13 04:09:39 +10:00
Makefile [POWERPC] bootwrapper: Add a cuboot platform and a cuImage target 2007-04-24 21:31:54 +10:00