Skip to content

Commit

Permalink
powerpc/mm: Use hpt_va to compute virtual address
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Aneesh Kumar K.V authored and Benjamin Herrenschmidt committed Sep 17, 2012
1 parent f038392 commit f6412b7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/powerpc/platforms/cell/beat_htab.c
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,7 @@ static void beat_lpar_hpte_updateboltedpp(unsigned long newpp,
u64 dummy0, dummy1;

vsid = get_kernel_vsid(ea, MMU_SEGSIZE_256M);
va = (vsid << 28) | (ea & 0x0fffffff);
va = hpt_va(ea, vsid, MMU_SEGSIZE_256M);

raw_spin_lock(&beat_htab_lock);
slot = beat_lpar_hpte_find(va, psize);
Expand Down

0 comments on commit f6412b7

Please sign in to comment.