]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
powerpc: Use encode avpn where we need only avpn values
authorAneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>
Sun, 28 Apr 2013 09:37:34 +0000 (09:37 +0000)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Tue, 30 Apr 2013 06:00:11 +0000 (16:00 +1000)
commit74f227b22897e0db52a58f8f634e9ce6f67cc652
tree987b31602251010b3335389510cf5d037d331413
parent5c1f6ee9a31cbdac90bbb8ae1ba4475031ac74b4
powerpc: Use encode avpn where we need only avpn values

In all these cases we are doing something similar to

HPTE_V_COMPARE(hpte_v, want_v) which ignores the HPTE_V_LARGE bit

With MPSS support we would need actual page size to set HPTE_V_LARGE
bit and that won't be available in most of these cases. Since we are ignoring
HPTE_V_LARGE bit, use the  avpn value instead. There should not be any change
in behaviour after this patch.

Acked-by: Paul Mackerras <paulus@samba.org>
Signed-off-by: Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
arch/powerpc/mm/hash_native_64.c
arch/powerpc/platforms/cell/beat_htab.c
arch/powerpc/platforms/ps3/htab.c