diff options
Diffstat (limited to 'arch')
-rw-r--r-- | arch/powerpc/mm/ppc_mmu_32.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/arch/powerpc/mm/ppc_mmu_32.c b/arch/powerpc/mm/ppc_mmu_32.c index 45d925360b89..fe65c405412c 100644 --- a/arch/powerpc/mm/ppc_mmu_32.c +++ b/arch/powerpc/mm/ppc_mmu_32.c | |||
@@ -123,9 +123,9 @@ void __init setbat(int index, unsigned long virt, phys_addr_t phys, | |||
123 | int wimgxpp; | 123 | int wimgxpp; |
124 | struct ppc_bat *bat = BATS[index]; | 124 | struct ppc_bat *bat = BATS[index]; |
125 | 125 | ||
126 | if (((flags & _PAGE_NO_CACHE) == 0) && | 126 | if ((flags & _PAGE_NO_CACHE) || |
127 | cpu_has_feature(CPU_FTR_NEED_COHERENT)) | 127 | (cpu_has_feature(CPU_FTR_NEED_COHERENT) == 0)) |
128 | flags |= _PAGE_COHERENT; | 128 | flags &= ~_PAGE_COHERENT; |
129 | 129 | ||
130 | bl = (size >> 17) - 1; | 130 | bl = (size >> 17) - 1; |
131 | if (PVR_VER(mfspr(SPRN_PVR)) != 1) { | 131 | if (PVR_VER(mfspr(SPRN_PVR)) != 1) { |