aboutsummaryrefslogtreecommitdiffstats
path: root/init/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'init/main.c')
-rw-r--r--init/main.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/init/main.c b/init/main.c
index bce0eb7f4f8f..b2f3b566790e 100644
--- a/init/main.c
+++ b/init/main.c
@@ -11,7 +11,6 @@
11 11
12#define __KERNEL_SYSCALLS__ 12#define __KERNEL_SYSCALLS__
13 13
14#include <linux/config.h>
15#include <linux/types.h> 14#include <linux/types.h>
16#include <linux/module.h> 15#include <linux/module.h>
17#include <linux/proc_fs.h> 16#include <linux/proc_fs.h>
@@ -446,10 +445,17 @@ static void __init boot_cpu_init(void)
446 cpu_set(cpu, cpu_possible_map); 445 cpu_set(cpu, cpu_possible_map);
447} 446}
448 447
448void __init __attribute__((weak)) smp_setup_processor_id(void)
449{
450}
451
449asmlinkage void __init start_kernel(void) 452asmlinkage void __init start_kernel(void)
450{ 453{
451 char * command_line; 454 char * command_line;
452 extern struct kernel_param __start___param[], __stop___param[]; 455 extern struct kernel_param __start___param[], __stop___param[];
456
457 smp_setup_processor_id();
458
453/* 459/*
454 * Interrupts are still disabled. Do necessary setups, then 460 * Interrupts are still disabled. Do necessary setups, then
455 * enable them 461 * enable them