[POWERPC] Made FSL Book-E PMC support more generic
Some of the more recent e300 cores have the same performance monitor implementation as the e500. e300 isn't book-e, so the name isn't really appropriate. In preparation for e300 support, rename a bunch of fsl_booke things to say fsl_emb (Freescale Embedded Performance Monitors). Signed-off-by: Andy Fleming <afleming@freescale.com> Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
This commit is contained in:
@@ -1435,7 +1435,7 @@ static struct cpu_spec __initdata cpu_specs[] = {
|
||||
.dcache_bsize = 32,
|
||||
.num_pmcs = 4,
|
||||
.oprofile_cpu_type = "ppc/e500",
|
||||
.oprofile_type = PPC_OPROFILE_BOOKE,
|
||||
.oprofile_type = PPC_OPROFILE_FSL_EMB,
|
||||
.machine_check = machine_check_e500,
|
||||
.platform = "ppc8540",
|
||||
},
|
||||
@@ -1453,7 +1453,7 @@ static struct cpu_spec __initdata cpu_specs[] = {
|
||||
.dcache_bsize = 32,
|
||||
.num_pmcs = 4,
|
||||
.oprofile_cpu_type = "ppc/e500",
|
||||
.oprofile_type = PPC_OPROFILE_BOOKE,
|
||||
.oprofile_type = PPC_OPROFILE_FSL_EMB,
|
||||
.machine_check = machine_check_e500,
|
||||
.platform = "ppc8548",
|
||||
},
|
||||
|
@@ -26,7 +26,7 @@
|
||||
|
||||
static void dummy_perf(struct pt_regs *regs)
|
||||
{
|
||||
#if defined(CONFIG_FSL_BOOKE) && !defined(CONFIG_E200)
|
||||
#if defined(CONFIG_FSL_EMB_PERFMON)
|
||||
mtpmr(PMRN_PMGC0, mfpmr(PMRN_PMGC0) & ~PMGC0_PMIE);
|
||||
#elif defined(CONFIG_PPC64) || defined(CONFIG_6xx)
|
||||
if (cur_cpu_spec->pmc_type == PPC_PMC_IBM)
|
||||
|
Reference in New Issue
Block a user