diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2009-03-28 16:40:20 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2009-03-28 16:48:38 -0400 |
commit | 7c730ccdc1188b97f5c8cb690906242c7ed75c22 (patch) | |
tree | 17ccd927e70dadaf59104c53cce892474eb539b2 /init/main.c | |
parent | 8d735b4148d46446e64d72b22ef0344ee8dc02fa (diff) | |
parent | 82268da1b130f763d22d04f7d016bbf6fc8815c2 (diff) |
Merge branch 'percpu-cpumask-x86-for-linus-2' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip
* 'percpu-cpumask-x86-for-linus-2' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip: (682 commits)
percpu: fix spurious alignment WARN in legacy SMP percpu allocator
percpu: generalize embedding first chunk setup helper
percpu: more flexibility for @dyn_size of pcpu_setup_first_chunk()
percpu: make x86 addr <-> pcpu ptr conversion macros generic
linker script: define __per_cpu_load on all SMP capable archs
x86: UV: remove uv_flush_tlb_others() WARN_ON
percpu: finer grained locking to break deadlock and allow atomic free
percpu: move fully free chunk reclamation into a work
percpu: move chunk area map extension out of area allocation
percpu: replace pcpu_realloc() with pcpu_mem_alloc() and pcpu_mem_free()
x86, percpu: setup reserved percpu area for x86_64
percpu, module: implement reserved allocation and use it for module percpu variables
percpu: add an indirection ptr for chunk page map access
x86: make embedding percpu allocator return excessive free space
percpu: use negative for auto for pcpu_setup_first_chunk() arguments
percpu: improve first chunk initial area map handling
percpu: cosmetic renames in pcpu_setup_first_chunk()
percpu: clean up percpu constants
x86: un-__init fill_pud/pmd/pte
x86: remove vestigial fix_ioremap prototypes
...
Manually merge conflicts in arch/ia64/kernel/irq_ia64.c
Diffstat (limited to 'init/main.c')
-rw-r--r-- | init/main.c | 19 |
1 files changed, 13 insertions, 6 deletions
diff --git a/init/main.c b/init/main.c index 83697e160b3a..6bf83afd654d 100644 --- a/init/main.c +++ b/init/main.c | |||
@@ -14,6 +14,7 @@ | |||
14 | #include <linux/proc_fs.h> | 14 | #include <linux/proc_fs.h> |
15 | #include <linux/kernel.h> | 15 | #include <linux/kernel.h> |
16 | #include <linux/syscalls.h> | 16 | #include <linux/syscalls.h> |
17 | #include <linux/stackprotector.h> | ||
17 | #include <linux/string.h> | 18 | #include <linux/string.h> |
18 | #include <linux/ctype.h> | 19 | #include <linux/ctype.h> |
19 | #include <linux/delay.h> | 20 | #include <linux/delay.h> |
@@ -135,14 +136,14 @@ unsigned int __initdata setup_max_cpus = NR_CPUS; | |||
135 | * greater than 0, limits the maximum number of CPUs activated in | 136 | * greater than 0, limits the maximum number of CPUs activated in |
136 | * SMP mode to <NUM>. | 137 | * SMP mode to <NUM>. |
137 | */ | 138 | */ |
138 | #ifndef CONFIG_X86_IO_APIC | 139 | |
139 | static inline void disable_ioapic_setup(void) {}; | 140 | void __weak arch_disable_smp_support(void) { } |
140 | #endif | ||
141 | 141 | ||
142 | static int __init nosmp(char *str) | 142 | static int __init nosmp(char *str) |
143 | { | 143 | { |
144 | setup_max_cpus = 0; | 144 | setup_max_cpus = 0; |
145 | disable_ioapic_setup(); | 145 | arch_disable_smp_support(); |
146 | |||
146 | return 0; | 147 | return 0; |
147 | } | 148 | } |
148 | 149 | ||
@@ -152,14 +153,14 @@ static int __init maxcpus(char *str) | |||
152 | { | 153 | { |
153 | get_option(&str, &setup_max_cpus); | 154 | get_option(&str, &setup_max_cpus); |
154 | if (setup_max_cpus == 0) | 155 | if (setup_max_cpus == 0) |
155 | disable_ioapic_setup(); | 156 | arch_disable_smp_support(); |
156 | 157 | ||
157 | return 0; | 158 | return 0; |
158 | } | 159 | } |
159 | 160 | ||
160 | early_param("maxcpus", maxcpus); | 161 | early_param("maxcpus", maxcpus); |
161 | #else | 162 | #else |
162 | #define setup_max_cpus NR_CPUS | 163 | const unsigned int setup_max_cpus = NR_CPUS; |
163 | #endif | 164 | #endif |
164 | 165 | ||
165 | /* | 166 | /* |
@@ -540,6 +541,12 @@ asmlinkage void __init start_kernel(void) | |||
540 | */ | 541 | */ |
541 | lockdep_init(); | 542 | lockdep_init(); |
542 | debug_objects_early_init(); | 543 | debug_objects_early_init(); |
544 | |||
545 | /* | ||
546 | * Set up the the initial canary ASAP: | ||
547 | */ | ||
548 | boot_init_stack_canary(); | ||
549 | |||
543 | cgroup_init_early(); | 550 | cgroup_init_early(); |
544 | 551 | ||
545 | local_irq_disable(); | 552 | local_irq_disable(); |