diff options
| author | Jeff Garzik <jeff@garzik.org> | 2006-04-12 16:54:43 -0400 |
|---|---|---|
| committer | Jeff Garzik <jeff@garzik.org> | 2006-04-12 16:54:43 -0400 |
| commit | a890b15c0990cc8d686edcc85f5fccde71ad5ce9 (patch) | |
| tree | 73162355b58283a2531f13fbbf663809f95c1483 /arch/m32r/kernel/smpboot.c | |
| parent | 79fa1b677be3a985cc66b9218a4dd09818f1051b (diff) | |
| parent | 26ec634c31a11a003040e10b4d650495158632fd (diff) | |
Merge branch 'upstream'
Diffstat (limited to 'arch/m32r/kernel/smpboot.c')
| -rw-r--r-- | arch/m32r/kernel/smpboot.c | 19 |
1 files changed, 10 insertions, 9 deletions
diff --git a/arch/m32r/kernel/smpboot.c b/arch/m32r/kernel/smpboot.c index d7ec16e7fb25..840b4348bf0c 100644 --- a/arch/m32r/kernel/smpboot.c +++ b/arch/m32r/kernel/smpboot.c | |||
| @@ -39,8 +39,10 @@ | |||
| 39 | * Martin J. Bligh : Added support for multi-quad systems | 39 | * Martin J. Bligh : Added support for multi-quad systems |
| 40 | */ | 40 | */ |
| 41 | 41 | ||
| 42 | #include <linux/module.h> | ||
| 42 | #include <linux/config.h> | 43 | #include <linux/config.h> |
| 43 | #include <linux/init.h> | 44 | #include <linux/init.h> |
| 45 | #include <linux/kernel.h> | ||
| 44 | #include <linux/mm.h> | 46 | #include <linux/mm.h> |
| 45 | #include <linux/smp_lock.h> | 47 | #include <linux/smp_lock.h> |
| 46 | #include <linux/irq.h> | 48 | #include <linux/irq.h> |
| @@ -72,11 +74,15 @@ physid_mask_t phys_cpu_present_map; | |||
| 72 | 74 | ||
| 73 | /* Bitmask of currently online CPUs */ | 75 | /* Bitmask of currently online CPUs */ |
| 74 | cpumask_t cpu_online_map; | 76 | cpumask_t cpu_online_map; |
| 77 | EXPORT_SYMBOL(cpu_online_map); | ||
| 75 | 78 | ||
| 76 | cpumask_t cpu_bootout_map; | 79 | cpumask_t cpu_bootout_map; |
| 77 | cpumask_t cpu_bootin_map; | 80 | cpumask_t cpu_bootin_map; |
| 78 | cpumask_t cpu_callout_map; | ||
| 79 | static cpumask_t cpu_callin_map; | 81 | static cpumask_t cpu_callin_map; |
| 82 | cpumask_t cpu_callout_map; | ||
| 83 | EXPORT_SYMBOL(cpu_callout_map); | ||
| 84 | cpumask_t cpu_possible_map = CPU_MASK_ALL; | ||
| 85 | EXPORT_SYMBOL(cpu_possible_map); | ||
| 80 | 86 | ||
| 81 | /* Per CPU bogomips and other parameters */ | 87 | /* Per CPU bogomips and other parameters */ |
| 82 | struct cpuinfo_m32r cpu_data[NR_CPUS] __cacheline_aligned; | 88 | struct cpuinfo_m32r cpu_data[NR_CPUS] __cacheline_aligned; |
| @@ -110,7 +116,6 @@ static unsigned int calibration_result; | |||
| 110 | 116 | ||
| 111 | void smp_prepare_boot_cpu(void); | 117 | void smp_prepare_boot_cpu(void); |
| 112 | void smp_prepare_cpus(unsigned int); | 118 | void smp_prepare_cpus(unsigned int); |
| 113 | static void smp_tune_scheduling(void); | ||
| 114 | static void init_ipi_lock(void); | 119 | static void init_ipi_lock(void); |
| 115 | static void do_boot_cpu(int); | 120 | static void do_boot_cpu(int); |
| 116 | int __cpu_up(unsigned int); | 121 | int __cpu_up(unsigned int); |
| @@ -177,6 +182,9 @@ void __init smp_prepare_cpus(unsigned int max_cpus) | |||
| 177 | } | 182 | } |
| 178 | for (phys_id = 0 ; phys_id < nr_cpu ; phys_id++) | 183 | for (phys_id = 0 ; phys_id < nr_cpu ; phys_id++) |
| 179 | physid_set(phys_id, phys_cpu_present_map); | 184 | physid_set(phys_id, phys_cpu_present_map); |
| 185 | #ifndef CONFIG_HOTPLUG_CPU | ||
| 186 | cpu_present_map = cpu_possible_map; | ||
| 187 | #endif | ||
| 180 | 188 | ||
| 181 | show_mp_info(nr_cpu); | 189 | show_mp_info(nr_cpu); |
| 182 | 190 | ||
| @@ -186,7 +194,6 @@ void __init smp_prepare_cpus(unsigned int max_cpus) | |||
| 186 | * Setup boot CPU information | 194 | * Setup boot CPU information |
| 187 | */ | 195 | */ |
| 188 | smp_store_cpu_info(0); /* Final full version of the data */ | 196 | smp_store_cpu_info(0); /* Final full version of the data */ |
| 189 | smp_tune_scheduling(); | ||
| 190 | 197 | ||
| 191 | /* | 198 | /* |
| 192 | * If SMP should be disabled, then really disable it! | 199 | * If SMP should be disabled, then really disable it! |
| @@ -230,11 +237,6 @@ smp_done: | |||
| 230 | Dprintk("Boot done.\n"); | 237 | Dprintk("Boot done.\n"); |
| 231 | } | 238 | } |
| 232 | 239 | ||
| 233 | static void __init smp_tune_scheduling(void) | ||
| 234 | { | ||
| 235 | /* Nothing to do. */ | ||
| 236 | } | ||
| 237 | |||
| 238 | /* | 240 | /* |
| 239 | * init_ipi_lock : Initialize IPI locks. | 241 | * init_ipi_lock : Initialize IPI locks. |
| 240 | */ | 242 | */ |
| @@ -629,4 +631,3 @@ static void __init unmap_cpu_to_physid(int cpu_id, int phys_id) | |||
| 629 | physid_2_cpu[phys_id] = -1; | 631 | physid_2_cpu[phys_id] = -1; |
| 630 | cpu_2_physid[cpu_id] = -1; | 632 | cpu_2_physid[cpu_id] = -1; |
| 631 | } | 633 | } |
| 632 | |||
