]> git.baikalelectronics.ru Git - kernel.git/commit
[PATCH] Invert sense of SLB class bit
authorDavid Gibson <david@gibson.dropbear.id.au>
Tue, 6 Sep 2005 04:59:47 +0000 (14:59 +1000)
committerPaul Mackerras <paulus@samba.org>
Tue, 6 Sep 2005 06:57:46 +0000 (16:57 +1000)
commitf93007c3f4c20a56028fe5682938879276ad52b0
tree98915b1889422383a85186d8455ecca69fa2327b
parent101d413b8beafbac4815f943ffa37a2642400e88
[PATCH] Invert sense of SLB class bit

Currently, we set the class bit in kernel SLB entries, and clear it on
user SLB entries.  On POWER5, ERAT entries created in real mode have
the class bit clear.  So to avoid flushing kernel ERAT entries on each
context switch, this patch inverts our usage of the class bit, setting
it on user SLB entries and clearing it on kernel SLB entries.

Booted on POWER5 and G5.

Signed-off-by: David Gibson <dwg@au1.ibm.com>
Signed-off-by: Paul Mackerras <paulus@samba.org>
arch/ppc64/kernel/entry.S
arch/ppc64/mm/hugetlbpage.c
arch/ppc64/mm/slb.c
include/asm-ppc64/mmu.h