]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/mm: Fix handling of _PAGE_COHERENT in BAT setup code
authorGerhard Pircher <gerhard_pircher@gmx.net>
Fri, 23 Jan 2009 06:51:28 +0000 (06:51 +0000)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Wed, 28 Jan 2009 06:15:52 +0000 (17:15 +1100)
commit9c959cce5310f0f697e127e2402f5c3efebe0e53
tree0f1de24f488a59da4a7cc3445c89f8fe48b775aa
parent763dbb0627215ca0ff665be6ca9fb29a91ed69cf
powerpc/mm: Fix handling of _PAGE_COHERENT in BAT setup code

_PAGE_COHERENT is now always set in _PAGE_RAM resp. PAGE_KERNEL.
Thus it has to be masked out, if the BAT mapping should be non
cacheable or CPU_FTR_NEED_COHERENT is not set.

This will work on normal SMP setups because we force-set
CPU_FTR_NEED_COHERENT as part of CPU_FTR_COMMON on SMP.

Signed-off-by: Gerhard Pircher <gerhard_pircher@gmx.net>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
arch/powerpc/mm/ppc_mmu_32.c