diff options
Diffstat (limited to 'arch/sparc64/kernel/setup.c')
| -rw-r--r-- | arch/sparc64/kernel/setup.c | 23 |
1 files changed, 11 insertions, 12 deletions
diff --git a/arch/sparc64/kernel/setup.c b/arch/sparc64/kernel/setup.c index 005167f82419..9cf1c88cd774 100644 --- a/arch/sparc64/kernel/setup.c +++ b/arch/sparc64/kernel/setup.c | |||
| @@ -220,7 +220,7 @@ char reboot_command[COMMAND_LINE_SIZE]; | |||
| 220 | 220 | ||
| 221 | static struct pt_regs fake_swapper_regs = { { 0, }, 0, 0, 0, 0 }; | 221 | static struct pt_regs fake_swapper_regs = { { 0, }, 0, 0, 0, 0 }; |
| 222 | 222 | ||
| 223 | static void __init per_cpu_patch(void) | 223 | void __init per_cpu_patch(void) |
| 224 | { | 224 | { |
| 225 | struct cpuid_patch_entry *p; | 225 | struct cpuid_patch_entry *p; |
| 226 | unsigned long ver; | 226 | unsigned long ver; |
| @@ -280,7 +280,7 @@ static void __init per_cpu_patch(void) | |||
| 280 | } | 280 | } |
| 281 | } | 281 | } |
| 282 | 282 | ||
| 283 | static void __init sun4v_patch(void) | 283 | void __init sun4v_patch(void) |
| 284 | { | 284 | { |
| 285 | struct sun4v_1insn_patch_entry *p1; | 285 | struct sun4v_1insn_patch_entry *p1; |
| 286 | struct sun4v_2insn_patch_entry *p2; | 286 | struct sun4v_2insn_patch_entry *p2; |
| @@ -315,6 +315,15 @@ static void __init sun4v_patch(void) | |||
| 315 | } | 315 | } |
| 316 | } | 316 | } |
| 317 | 317 | ||
| 318 | #ifdef CONFIG_SMP | ||
| 319 | void __init boot_cpu_id_too_large(int cpu) | ||
| 320 | { | ||
| 321 | prom_printf("Serious problem, boot cpu id (%d) >= NR_CPUS (%d)\n", | ||
| 322 | cpu, NR_CPUS); | ||
| 323 | prom_halt(); | ||
| 324 | } | ||
| 325 | #endif | ||
| 326 | |||
| 318 | void __init setup_arch(char **cmdline_p) | 327 | void __init setup_arch(char **cmdline_p) |
| 319 | { | 328 | { |
| 320 | /* Initialize PROM console and command line. */ | 329 | /* Initialize PROM console and command line. */ |
| @@ -332,16 +341,6 @@ void __init setup_arch(char **cmdline_p) | |||
| 332 | conswitchp = &prom_con; | 341 | conswitchp = &prom_con; |
| 333 | #endif | 342 | #endif |
| 334 | 343 | ||
| 335 | /* Work out if we are starfire early on */ | ||
| 336 | check_if_starfire(); | ||
| 337 | |||
| 338 | /* Now we know enough to patch the get_cpuid sequences | ||
| 339 | * used by trap code. | ||
| 340 | */ | ||
| 341 | per_cpu_patch(); | ||
| 342 | |||
| 343 | sun4v_patch(); | ||
| 344 | |||
| 345 | boot_flags_init(*cmdline_p); | 344 | boot_flags_init(*cmdline_p); |
| 346 | 345 | ||
| 347 | idprom_init(); | 346 | idprom_init(); |
