diff options
author | Gavin Shan <gwshan@linux.vnet.ibm.com> | 2014-11-11 21:29:28 -0500 |
---|---|---|
committer | Michael Ellerman <mpe@ellerman.id.au> | 2014-11-11 21:54:36 -0500 |
commit | d1d5304fcbc519f5fb12cbcca9c4fdd1d94447d7 (patch) | |
tree | 11a6abadaeb8baf59b188da1726b90a660c7f227 /arch/powerpc/mm | |
parent | cd32e2dcc9de6c27ecbbfc0e2079fb64b42bad5f (diff) |
powerpc/mm: Use PAGE_FACTOR
PAGE_FACTOR was defined to reflect the difference between configured
page size and fixed 4KB page size. Replace (PAGE_SHIFT - HW_PAGE_SHIFT)
with PAGE_FACTOR.
Signed-off-by: Gavin Shan <gwshan@linux.vnet.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Diffstat (limited to 'arch/powerpc/mm')
-rw-r--r-- | arch/powerpc/mm/hash_low_64.S | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/powerpc/mm/hash_low_64.S b/arch/powerpc/mm/hash_low_64.S index 057cbbb4c576..5094f32b706e 100644 --- a/arch/powerpc/mm/hash_low_64.S +++ b/arch/powerpc/mm/hash_low_64.S | |||
@@ -514,7 +514,7 @@ htab_insert_pte: | |||
514 | andis. r0,r31,_PAGE_4K_PFN@h | 514 | andis. r0,r31,_PAGE_4K_PFN@h |
515 | srdi r5,r31,PTE_RPN_SHIFT | 515 | srdi r5,r31,PTE_RPN_SHIFT |
516 | bne- htab_special_pfn | 516 | bne- htab_special_pfn |
517 | sldi r5,r5,PAGE_SHIFT-HW_PAGE_SHIFT | 517 | sldi r5,r5,PAGE_FACTOR |
518 | add r5,r5,r25 | 518 | add r5,r5,r25 |
519 | htab_special_pfn: | 519 | htab_special_pfn: |
520 | sldi r5,r5,HW_PAGE_SHIFT | 520 | sldi r5,r5,HW_PAGE_SHIFT |
@@ -544,7 +544,7 @@ htab_call_hpte_insert1: | |||
544 | andis. r0,r31,_PAGE_4K_PFN@h | 544 | andis. r0,r31,_PAGE_4K_PFN@h |
545 | srdi r5,r31,PTE_RPN_SHIFT | 545 | srdi r5,r31,PTE_RPN_SHIFT |
546 | bne- 3f | 546 | bne- 3f |
547 | sldi r5,r5,PAGE_SHIFT-HW_PAGE_SHIFT | 547 | sldi r5,r5,PAGE_FACTOR |
548 | add r5,r5,r25 | 548 | add r5,r5,r25 |
549 | 3: sldi r5,r5,HW_PAGE_SHIFT | 549 | 3: sldi r5,r5,HW_PAGE_SHIFT |
550 | 550 | ||