Skip to content

Commit facfdde

Browse files
committed
sparc: Don't leave sparc_pmu_type NULL on sun4v.
Otherwise we'll crash in the sparc perf init code. Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent 95b6886 commit facfdde

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

‎arch/sparc/kernel/cpu.c‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -479,6 +479,7 @@ static void __init sun4v_cpu_probe(void)
479479
prom_cpu_compatible);
480480
sparc_cpu_type = "Unknown SUN4V CPU";
481481
sparc_fpu_type = "Unknown SUN4V FPU";
482+
sparc_pmu_type = "Unknown SUN4V PMU";
482483
break;
483484
}
484485
}

0 commit comments

Comments
 (0)