diff options
author | Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com> | 2013-11-18 04:28:10 -0500 |
---|---|---|
committer | Benjamin Herrenschmidt <benh@kernel.crashing.org> | 2013-12-08 19:40:28 -0500 |
commit | c8c06f5a0dde0fed260c54d550962187f266ed0d (patch) | |
tree | f9fb794ebe4f9ebf0b32a8aabe53c99f275d7cc8 /arch/powerpc/mm/hugepage-hash64.c | |
parent | 92c08a0d522c7e62c01a63e42597f0c2b02c4245 (diff) |
powerpc/mm: Free up _PAGE_COHERENCE for numa fault use later
Set memory coherence always on hash64 config. If
a platform cannot have memory coherence always set they
can infer that from _PAGE_NO_CACHE and _PAGE_WRITETHRU
like in lpar. So we dont' really need a separate bit
for tracking _PAGE_COHERENCE.
Signed-off-by: Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>
Acked-by: Paul Mackerras <paulus@samba.org>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Diffstat (limited to 'arch/powerpc/mm/hugepage-hash64.c')
-rw-r--r-- | arch/powerpc/mm/hugepage-hash64.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/arch/powerpc/mm/hugepage-hash64.c b/arch/powerpc/mm/hugepage-hash64.c index 34de9e0cdc34..826893fcb3a7 100644 --- a/arch/powerpc/mm/hugepage-hash64.c +++ b/arch/powerpc/mm/hugepage-hash64.c | |||
@@ -127,7 +127,11 @@ repeat: | |||
127 | 127 | ||
128 | /* Add in WIMG bits */ | 128 | /* Add in WIMG bits */ |
129 | rflags |= (new_pmd & (_PAGE_WRITETHRU | _PAGE_NO_CACHE | | 129 | rflags |= (new_pmd & (_PAGE_WRITETHRU | _PAGE_NO_CACHE | |
130 | _PAGE_COHERENT | _PAGE_GUARDED)); | 130 | _PAGE_GUARDED)); |
131 | /* | ||
132 | * enable the memory coherence always | ||
133 | */ | ||
134 | rflags |= HPTE_R_M; | ||
131 | 135 | ||
132 | /* Insert into the hash table, primary slot */ | 136 | /* Insert into the hash table, primary slot */ |
133 | slot = ppc_md.hpte_insert(hpte_group, vpn, pa, rflags, 0, | 137 | slot = ppc_md.hpte_insert(hpte_group, vpn, pa, rflags, 0, |