diff options
Diffstat (limited to 'arch/arm/mach-realview')
-rw-r--r-- | arch/arm/mach-realview/platsmp.c | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/arch/arm/mach-realview/platsmp.c b/arch/arm/mach-realview/platsmp.c index af3d9093390b..108e92f9746b 100644 --- a/arch/arm/mach-realview/platsmp.c +++ b/arch/arm/mach-realview/platsmp.c | |||
@@ -160,16 +160,6 @@ void __init smp_init_cpus(void) | |||
160 | { | 160 | { |
161 | unsigned int i, ncores = get_core_count(); | 161 | unsigned int i, ncores = get_core_count(); |
162 | 162 | ||
163 | for (i = 0; i < ncores; i++) | ||
164 | set_cpu_possible(i, true); | ||
165 | } | ||
166 | |||
167 | void __init smp_prepare_cpus(unsigned int max_cpus) | ||
168 | { | ||
169 | unsigned int ncores = get_core_count(); | ||
170 | unsigned int cpu = smp_processor_id(); | ||
171 | int i; | ||
172 | |||
173 | /* sanity check */ | 163 | /* sanity check */ |
174 | if (ncores == 0) { | 164 | if (ncores == 0) { |
175 | printk(KERN_ERR | 165 | printk(KERN_ERR |
@@ -186,6 +176,16 @@ void __init smp_prepare_cpus(unsigned int max_cpus) | |||
186 | ncores = NR_CPUS; | 176 | ncores = NR_CPUS; |
187 | } | 177 | } |
188 | 178 | ||
179 | for (i = 0; i < ncores; i++) | ||
180 | set_cpu_possible(i, true); | ||
181 | } | ||
182 | |||
183 | void __init smp_prepare_cpus(unsigned int max_cpus) | ||
184 | { | ||
185 | unsigned int ncores = num_possible_cpus(); | ||
186 | unsigned int cpu = smp_processor_id(); | ||
187 | int i; | ||
188 | |||
189 | smp_store_cpu_info(cpu); | 189 | smp_store_cpu_info(cpu); |
190 | 190 | ||
191 | /* | 191 | /* |