Skip to contentSkip to conversation

powerpc: add num_pmcs to 970MP cputable entry

PATCH New Anton Blanchard 1 participant 1 message May 4, 2006 PowerPC

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 powerpc: add num_pmcs to 970MP cputable entry

Hi,

The 970MP cputable entry needs a num_pmcs entry for oprofile to work.

---

arch/powerpc/kernel/cputable.c +1 -0
index 39e348a..f618ff4 100644
@@ -230,6 +230,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,