diff options
| author | Michael Neuling <mikey@neuling.org> | 2013-06-04 15:38:54 -0400 |
|---|---|---|
| committer | Benjamin Herrenschmidt <benh@kernel.crashing.org> | 2013-06-09 18:36:19 -0400 |
| commit | 6a60f9e7d8bb3e81fa8bd6752f1473e216424ec4 (patch) | |
| tree | 71fe5b72eb068f4133dfc6dec6405fb52513d91d /arch | |
| parent | b8b3de224f194005ad87ede6fd022fcc2bef3b1a (diff) | |
powerpc/power8: Fix oprofile and perf
In 2ac6f42 powerpc/cputable: Fix oprofile_cpu_type on power8
we broke all power8 hw events.
This reverts this change and uses oprofile_type instead. Perf now works
on POWER8 again and oprofile will revert to using timers on POWER8.
Kudos to mpe this fix.
Signed-off-by: Michael Neuling <mikey@neuling.org>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Diffstat (limited to 'arch')
| -rw-r--r-- | arch/powerpc/kernel/cputable.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/arch/powerpc/kernel/cputable.c b/arch/powerpc/kernel/cputable.c index 1f0937d7d4b5..2a45d0f04385 100644 --- a/arch/powerpc/kernel/cputable.c +++ b/arch/powerpc/kernel/cputable.c | |||
| @@ -452,8 +452,8 @@ static struct cpu_spec __initdata cpu_specs[] = { | |||
| 452 | .mmu_features = MMU_FTRS_POWER8, | 452 | .mmu_features = MMU_FTRS_POWER8, |
| 453 | .icache_bsize = 128, | 453 | .icache_bsize = 128, |
| 454 | .dcache_bsize = 128, | 454 | .dcache_bsize = 128, |
| 455 | .oprofile_type = PPC_OPROFILE_POWER4, | 455 | .oprofile_type = PPC_OPROFILE_INVALID, |
| 456 | .oprofile_cpu_type = 0, | 456 | .oprofile_cpu_type = "ppc64/ibm-compat-v1", |
| 457 | .cpu_setup = __setup_cpu_power8, | 457 | .cpu_setup = __setup_cpu_power8, |
| 458 | .cpu_restore = __restore_cpu_power8, | 458 | .cpu_restore = __restore_cpu_power8, |
| 459 | .platform = "power8", | 459 | .platform = "power8", |
| @@ -506,8 +506,8 @@ static struct cpu_spec __initdata cpu_specs[] = { | |||
| 506 | .dcache_bsize = 128, | 506 | .dcache_bsize = 128, |
| 507 | .num_pmcs = 6, | 507 | .num_pmcs = 6, |
| 508 | .pmc_type = PPC_PMC_IBM, | 508 | .pmc_type = PPC_PMC_IBM, |
| 509 | .oprofile_cpu_type = 0, | 509 | .oprofile_cpu_type = "ppc64/power8", |
| 510 | .oprofile_type = PPC_OPROFILE_POWER4, | 510 | .oprofile_type = PPC_OPROFILE_INVALID, |
| 511 | .cpu_setup = __setup_cpu_power8, | 511 | .cpu_setup = __setup_cpu_power8, |
| 512 | .cpu_restore = __restore_cpu_power8, | 512 | .cpu_restore = __restore_cpu_power8, |
| 513 | .platform = "power8", | 513 | .platform = "power8", |
