Skip to content

Commit

Permalink
powerpc: Use defines for __init_tlb_power[78]
Browse files Browse the repository at this point in the history
Use defines for literals __init_tlb_power[78] rather than hand coding
them.

Signed-off-by: Michael Neuling <mikey@neuling.org>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
  • Loading branch information
Michael Neuling authored and Michael Ellerman committed Feb 22, 2016
1 parent ce5732a commit 15b1624
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions arch/powerpc/kernel/cpu_setup_power.S
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
#include <asm/ppc_asm.h>
#include <asm/asm-offsets.h>
#include <asm/cache.h>
#include <asm/mmu-hash64.h>

/* Entry: r3 = crap, r4 = ptr to cputable entry
*
Expand Down Expand Up @@ -139,7 +140,7 @@ __init_HFSCR:
* (invalidate by congruence class). P7 has 128 CCs., P8 has 512.
*/
__init_tlb_power7:
li r6,128
li r6,POWER7_TLB_SETS
mtctr r6
li r7,0xc00 /* IS field = 0b11 */
ptesync
Expand All @@ -150,7 +151,7 @@ __init_tlb_power7:
1: blr

__init_tlb_power8:
li r6,512
li r6,POWER8_TLB_SETS
mtctr r6
li r7,0xc00 /* IS field = 0b11 */
ptesync
Expand Down

0 comments on commit 15b1624

Please sign in to comment.