diff options
Diffstat (limited to 'arch/sparc/kernel/cpu.c')
-rw-r--r-- | arch/sparc/kernel/cpu.c | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/arch/sparc/kernel/cpu.c b/arch/sparc/kernel/cpu.c index c3483c71aa04..138dbbc8dc84 100644 --- a/arch/sparc/kernel/cpu.c +++ b/arch/sparc/kernel/cpu.c | |||
@@ -258,7 +258,7 @@ static const char *sparc_fpu_type; | |||
258 | const char *sparc_pmu_type; | 258 | const char *sparc_pmu_type; |
259 | 259 | ||
260 | 260 | ||
261 | static void set_cpu_and_fpu(int psr_impl, int psr_vers, int fpu_vers) | 261 | static void __init set_cpu_and_fpu(int psr_impl, int psr_vers, int fpu_vers) |
262 | { | 262 | { |
263 | const struct manufacturer_info *manuf; | 263 | const struct manufacturer_info *manuf; |
264 | int i; | 264 | int i; |
@@ -434,7 +434,7 @@ const struct seq_operations cpuinfo_op = { | |||
434 | }; | 434 | }; |
435 | 435 | ||
436 | #ifdef CONFIG_SPARC32 | 436 | #ifdef CONFIG_SPARC32 |
437 | void __cpuinit cpu_probe(void) | 437 | static int __init cpu_type_probe(void) |
438 | { | 438 | { |
439 | int psr_impl, psr_vers, fpu_vers; | 439 | int psr_impl, psr_vers, fpu_vers; |
440 | int psr; | 440 | int psr; |
@@ -453,8 +453,12 @@ void __cpuinit cpu_probe(void) | |||
453 | put_psr(psr); | 453 | put_psr(psr); |
454 | 454 | ||
455 | set_cpu_and_fpu(psr_impl, psr_vers, fpu_vers); | 455 | set_cpu_and_fpu(psr_impl, psr_vers, fpu_vers); |
456 | |||
457 | return 0; | ||
456 | } | 458 | } |
457 | #else | 459 | #endif /* CONFIG_SPARC32 */ |
460 | |||
461 | #ifdef CONFIG_SPARC64 | ||
458 | static void __init sun4v_cpu_probe(void) | 462 | static void __init sun4v_cpu_probe(void) |
459 | { | 463 | { |
460 | switch (sun4v_chip_type) { | 464 | switch (sun4v_chip_type) { |
@@ -495,6 +499,6 @@ static int __init cpu_type_probe(void) | |||
495 | } | 499 | } |
496 | return 0; | 500 | return 0; |
497 | } | 501 | } |
502 | #endif /* CONFIG_SPARC64 */ | ||
498 | 503 | ||
499 | early_initcall(cpu_type_probe); | 504 | early_initcall(cpu_type_probe); |
500 | #endif | ||