powerpc/8xx: Remove now unused TLB miss functions
The code to setup linear and IMMR mapping via huge TLB entries is not called anymore. Remove it. Also remove the handling of removed code exits in the perf driver. Signed-off-by: Christophe Leroy <christophe.leroy@csgroup.eu> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au> Link: https://lore.kernel.org/r/75750d25849cb8e73ca519866bb892d7eb9649c0.1589866984.git.christophe.leroy@csgroup.eu
This commit is contained in:

committed by
Michael Ellerman

parent
400dc0f861
commit
1251288e64
@@ -100,9 +100,6 @@ static int mpc8xx_pmu_add(struct perf_event *event, int flags)
|
||||
unsigned long target = patch_site_addr(&patch__itlbmiss_perf);
|
||||
|
||||
patch_branch_site(&patch__itlbmiss_exit_1, target, 0);
|
||||
#ifndef CONFIG_PIN_TLB_TEXT
|
||||
patch_branch_site(&patch__itlbmiss_exit_2, target, 0);
|
||||
#endif
|
||||
}
|
||||
val = itlb_miss_counter;
|
||||
break;
|
||||
@@ -111,8 +108,6 @@ static int mpc8xx_pmu_add(struct perf_event *event, int flags)
|
||||
unsigned long target = patch_site_addr(&patch__dtlbmiss_perf);
|
||||
|
||||
patch_branch_site(&patch__dtlbmiss_exit_1, target, 0);
|
||||
patch_branch_site(&patch__dtlbmiss_exit_2, target, 0);
|
||||
patch_branch_site(&patch__dtlbmiss_exit_3, target, 0);
|
||||
}
|
||||
val = dtlb_miss_counter;
|
||||
break;
|
||||
@@ -175,9 +170,6 @@ static void mpc8xx_pmu_del(struct perf_event *event, int flags)
|
||||
__PPC_SPR(SPRN_SPRG_SCRATCH0));
|
||||
|
||||
patch_instruction_site(&patch__itlbmiss_exit_1, insn);
|
||||
#ifndef CONFIG_PIN_TLB_TEXT
|
||||
patch_instruction_site(&patch__itlbmiss_exit_2, insn);
|
||||
#endif
|
||||
}
|
||||
break;
|
||||
case PERF_8xx_ID_DTLB_LOAD_MISS:
|
||||
@@ -187,8 +179,6 @@ static void mpc8xx_pmu_del(struct perf_event *event, int flags)
|
||||
__PPC_SPR(SPRN_DAR));
|
||||
|
||||
patch_instruction_site(&patch__dtlbmiss_exit_1, insn);
|
||||
patch_instruction_site(&patch__dtlbmiss_exit_2, insn);
|
||||
patch_instruction_site(&patch__dtlbmiss_exit_3, insn);
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
Reference in New Issue
Block a user