Skip to content

Commit

Permalink
sparc: Don't leave sparc_pmu_type NULL on sun4v.
Browse files Browse the repository at this point in the history
Otherwise we'll crash in the sparc perf init code.

Signed-off-by: David S. Miller <[email protected]>
  • Loading branch information
davem330 committed Jul 28, 2011
1 parent 95b6886 commit facfdde
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions arch/sparc/kernel/cpu.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}
Expand Down

0 comments on commit facfdde

Please sign in to comment.