]> err.no Git - linux-2.6/commitdiff
[PATCH] powerpc: add num_pmcs to 970MP cputable entry
authorAnton Blanchard <anton@samba.org>
Thu, 4 May 2006 19:44:26 +0000 (05:44 +1000)
committerPaul Mackerras <paulus@samba.org>
Fri, 9 Jun 2006 11:21:03 +0000 (21:21 +1000)
The 970MP cputable entry needs a num_pmcs entry for oprofile to work.

Signed-off-by: Anton Blanchard <anton@samba.org>
Signed-off-by: Paul Mackerras <paulus@samba.org>
arch/powerpc/kernel/cputable.c

index 0c487ee4d4830fae96041dcfff56b0f53405e13a..7dcc01be4b0914113e0d0cad3a09c56dc5126657 100644 (file)
@@ -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,