From: Anton Blanchard Date: Thu, 4 May 2006 19:44:26 +0000 (+1000) Subject: [PATCH] powerpc: add num_pmcs to 970MP cputable entry X-Git-Tag: v2.6.18-rc1~1081^2~225^2~76 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=87af41beb9b70f06f760fc973b793488f2825853;p=karo-tx-linux.git [PATCH] powerpc: add num_pmcs to 970MP cputable entry The 970MP cputable entry needs a num_pmcs entry for oprofile to work. Signed-off-by: Anton Blanchard Signed-off-by: Paul Mackerras --- diff --git a/arch/powerpc/kernel/cputable.c b/arch/powerpc/kernel/cputable.c index 0c487ee4d483..7dcc01be4b09 100644 --- a/arch/powerpc/kernel/cputable.c +++ b/arch/powerpc/kernel/cputable.c @@ -220,6 +220,7 @@ struct cpu_spec cpu_specs[] = { PPC_FEATURE_HAS_ALTIVEC_COMP, .icache_bsize = 128, .dcache_bsize = 128, + .num_pmcs = 8, .cpu_setup = __setup_cpu_ppc970, .oprofile_cpu_type = "ppc64/970", .oprofile_type = PPC_OPROFILE_POWER4,