Skip to contentSkip to conversation

sparc: Don't leave sparc_pmu_type NULL on sun4v.

PATCH New David Miller 1 participant 1 message Jul 28, 2011 SPARC + UltraSPARC (sparc/sparc64)

lore
Share & tools
lore

David Miller

author maintainer
#0 lore raw

PATCH 1/6 sparc: Don't leave sparc_pmu_type NULL on sun4v.

Otherwise we'll crash in the sparc perf init code.

---
 arch/sparc/kernel/cpu.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
arch/sparc/kernel/cpu.c +1 -0
index 138dbbc..70f035c 100644
@@ -479,6 +479,7 @@ static void __init sun4v_cpu_probe(void)
 		       prom_cpu_compatible);
 		sparc_cpu_type = "Unknown SUN4V CPU";
 		sparc_fpu_type = "Unknown SUN4V FPU";
+		sparc_pmu_type = "Unknown SUN4V PMU";
 		break;
 	}
 }
Signature · 1 line
1.7.2.5