diff options
author | Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com> | 2012-09-09 22:52:48 -0400 |
---|---|---|
committer | Benjamin Herrenschmidt <benh@kernel.crashing.org> | 2012-09-17 02:31:48 -0400 |
commit | f6412b742ac754b4bbf3acaa9c05f825505671a1 (patch) | |
tree | c865143560f546763627cbbad9983be73ff05a03 /arch/powerpc/platforms/cell | |
parent | f03839236392f5bc6107af5c9f749e8a48cd616c (diff) |
powerpc/mm: Use hpt_va to compute virtual address
Don't open code the same
Reviewed-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>
Diffstat (limited to 'arch/powerpc/platforms/cell')
-rw-r--r-- | arch/powerpc/platforms/cell/beat_htab.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/powerpc/platforms/cell/beat_htab.c b/arch/powerpc/platforms/cell/beat_htab.c index 943c9d39aa16..b83077e13161 100644 --- a/arch/powerpc/platforms/cell/beat_htab.c +++ b/arch/powerpc/platforms/cell/beat_htab.c | |||
@@ -259,7 +259,7 @@ static void beat_lpar_hpte_updateboltedpp(unsigned long newpp, | |||
259 | u64 dummy0, dummy1; | 259 | u64 dummy0, dummy1; |
260 | 260 | ||
261 | vsid = get_kernel_vsid(ea, MMU_SEGSIZE_256M); | 261 | vsid = get_kernel_vsid(ea, MMU_SEGSIZE_256M); |
262 | va = (vsid << 28) | (ea & 0x0fffffff); | 262 | va = hpt_va(ea, vsid, MMU_SEGSIZE_256M); |
263 | 263 | ||
264 | raw_spin_lock(&beat_htab_lock); | 264 | raw_spin_lock(&beat_htab_lock); |
265 | slot = beat_lpar_hpte_find(va, psize); | 265 | slot = beat_lpar_hpte_find(va, psize); |