diff options
author | Andy Fleming <afleming@freescale.com> | 2008-02-04 19:27:55 -0500 |
---|---|---|
committer | Kumar Gala <galak@kernel.crashing.org> | 2008-02-06 00:34:14 -0500 |
commit | 39aef685af431c032ffd2763ec8782b13c32520c (patch) | |
tree | 2e6c8761ec9d62521418f6b0b2cf05f8e269407d /arch/powerpc/kernel | |
parent | 0367aad1ad5f8085ed15e9e30604f50108a1ea06 (diff) |
[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>
Diffstat (limited to 'arch/powerpc/kernel')
-rw-r--r-- | arch/powerpc/kernel/cputable.c | 4 | ||||
-rw-r--r-- | arch/powerpc/kernel/pmc.c | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/arch/powerpc/kernel/cputable.c b/arch/powerpc/kernel/cputable.c index a4c2771b5e62..98a1c9e6b9fa 100644 --- a/arch/powerpc/kernel/cputable.c +++ b/arch/powerpc/kernel/cputable.c | |||
@@ -1435,7 +1435,7 @@ static struct cpu_spec __initdata cpu_specs[] = { | |||
1435 | .dcache_bsize = 32, | 1435 | .dcache_bsize = 32, |
1436 | .num_pmcs = 4, | 1436 | .num_pmcs = 4, |
1437 | .oprofile_cpu_type = "ppc/e500", | 1437 | .oprofile_cpu_type = "ppc/e500", |
1438 | .oprofile_type = PPC_OPROFILE_BOOKE, | 1438 | .oprofile_type = PPC_OPROFILE_FSL_EMB, |
1439 | .machine_check = machine_check_e500, | 1439 | .machine_check = machine_check_e500, |
1440 | .platform = "ppc8540", | 1440 | .platform = "ppc8540", |
1441 | }, | 1441 | }, |
@@ -1453,7 +1453,7 @@ static struct cpu_spec __initdata cpu_specs[] = { | |||
1453 | .dcache_bsize = 32, | 1453 | .dcache_bsize = 32, |
1454 | .num_pmcs = 4, | 1454 | .num_pmcs = 4, |
1455 | .oprofile_cpu_type = "ppc/e500", | 1455 | .oprofile_cpu_type = "ppc/e500", |
1456 | .oprofile_type = PPC_OPROFILE_BOOKE, | 1456 | .oprofile_type = PPC_OPROFILE_FSL_EMB, |
1457 | .machine_check = machine_check_e500, | 1457 | .machine_check = machine_check_e500, |
1458 | .platform = "ppc8548", | 1458 | .platform = "ppc8548", |
1459 | }, | 1459 | }, |
diff --git a/arch/powerpc/kernel/pmc.c b/arch/powerpc/kernel/pmc.c index ea04e0ab3f2f..0516e2d3e02e 100644 --- a/arch/powerpc/kernel/pmc.c +++ b/arch/powerpc/kernel/pmc.c | |||
@@ -26,7 +26,7 @@ | |||
26 | 26 | ||
27 | static void dummy_perf(struct pt_regs *regs) | 27 | static void dummy_perf(struct pt_regs *regs) |
28 | { | 28 | { |
29 | #if defined(CONFIG_FSL_BOOKE) && !defined(CONFIG_E200) | 29 | #if defined(CONFIG_FSL_EMB_PERFMON) |
30 | mtpmr(PMRN_PMGC0, mfpmr(PMRN_PMGC0) & ~PMGC0_PMIE); | 30 | mtpmr(PMRN_PMGC0, mfpmr(PMRN_PMGC0) & ~PMGC0_PMIE); |
31 | #elif defined(CONFIG_PPC64) || defined(CONFIG_6xx) | 31 | #elif defined(CONFIG_PPC64) || defined(CONFIG_6xx) |
32 | if (cur_cpu_spec->pmc_type == PPC_PMC_IBM) | 32 | if (cur_cpu_spec->pmc_type == PPC_PMC_IBM) |