From: Michael Neuling Date: Fri, 19 Feb 2016 00:16:23 +0000 (+1100) Subject: powerpc: Use defines for __init_tlb_power[78] X-Git-Tag: v4.6-rc1~89^2~93 X-Git-Url: https://git.kernel.dk/?a=commitdiff_plain;h=15b1624b78075d4f52e170600c81720532ca790d;p=linux-2.6-block.git powerpc: Use defines for __init_tlb_power[78] Use defines for literals __init_tlb_power[78] rather than hand coding them. Signed-off-by: Michael Neuling Signed-off-by: Michael Ellerman --- diff --git a/arch/powerpc/kernel/cpu_setup_power.S b/arch/powerpc/kernel/cpu_setup_power.S index 9c9b7411b28b..cb3e272a659b 100644 --- a/arch/powerpc/kernel/cpu_setup_power.S +++ b/arch/powerpc/kernel/cpu_setup_power.S @@ -15,6 +15,7 @@ #include #include #include +#include /* Entry: r3 = crap, r4 = ptr to cputable entry * @@ -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 @@ -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