diff options
author | Thomas Gleixner <tglx@linutronix.de> | 2010-10-12 10:40:34 -0400 |
---|---|---|
committer | Thomas Gleixner <tglx@linutronix.de> | 2010-10-12 10:40:42 -0400 |
commit | 5e62feabcc3e4127a084701ec54ffe891985b7e8 (patch) | |
tree | 9246462da99ef4eb53c9c89a137d0a88c897f3d6 /arch/x86/kernel | |
parent | 8ffcfa4e2d96342180e02dfe1230b97778c52d72 (diff) | |
parent | 234bb549eea16ec7d5207ba747fb8dbf489e64c1 (diff) |
Merge branch 'x86/cleanups' into irq/sparseirq
Reason: Avoid conflicts with removal of boot_cpu_id
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'arch/x86/kernel')
-rw-r--r-- | arch/x86/kernel/apb_timer.c | 2 | ||||
-rw-r--r-- | arch/x86/kernel/apic/io_apic.c | 12 | ||||
-rw-r--r-- | arch/x86/kernel/cpu/amd.c | 2 | ||||
-rw-r--r-- | arch/x86/kernel/cpu/common.c | 2 | ||||
-rw-r--r-- | arch/x86/kernel/cpu/intel.c | 2 | ||||
-rw-r--r-- | arch/x86/kernel/early-quirks.c | 2 | ||||
-rw-r--r-- | arch/x86/kernel/machine_kexec_64.c | 4 | ||||
-rw-r--r-- | arch/x86/kernel/reboot.c | 2 | ||||
-rw-r--r-- | arch/x86/kernel/setup.c | 1 | ||||
-rw-r--r-- | arch/x86/kernel/setup_percpu.c | 2 |
10 files changed, 14 insertions, 17 deletions
diff --git a/arch/x86/kernel/apb_timer.c b/arch/x86/kernel/apb_timer.c index 8dd77800ff5d..08f75fb4f509 100644 --- a/arch/x86/kernel/apb_timer.c +++ b/arch/x86/kernel/apb_timer.c | |||
@@ -343,7 +343,7 @@ void apbt_setup_secondary_clock(void) | |||
343 | 343 | ||
344 | /* Don't register boot CPU clockevent */ | 344 | /* Don't register boot CPU clockevent */ |
345 | cpu = smp_processor_id(); | 345 | cpu = smp_processor_id(); |
346 | if (cpu == boot_cpu_id) | 346 | if (!cpu) |
347 | return; | 347 | return; |
348 | /* | 348 | /* |
349 | * We need to calculate the scaled math multiplication factor for | 349 | * We need to calculate the scaled math multiplication factor for |
diff --git a/arch/x86/kernel/apic/io_apic.c b/arch/x86/kernel/apic/io_apic.c index fe92916acd2a..bc0fa1ae5233 100644 --- a/arch/x86/kernel/apic/io_apic.c +++ b/arch/x86/kernel/apic/io_apic.c | |||
@@ -162,7 +162,7 @@ int __init arch_early_irq_init(void) | |||
162 | 162 | ||
163 | cfg = irq_cfgx; | 163 | cfg = irq_cfgx; |
164 | count = ARRAY_SIZE(irq_cfgx); | 164 | count = ARRAY_SIZE(irq_cfgx); |
165 | node= cpu_to_node(boot_cpu_id); | 165 | node = cpu_to_node(0); |
166 | 166 | ||
167 | for (i = 0; i < count; i++) { | 167 | for (i = 0; i < count; i++) { |
168 | desc = irq_to_desc(i); | 168 | desc = irq_to_desc(i); |
@@ -1469,7 +1469,7 @@ static void __init setup_IO_APIC_irqs(void) | |||
1469 | int notcon = 0; | 1469 | int notcon = 0; |
1470 | struct irq_desc *desc; | 1470 | struct irq_desc *desc; |
1471 | struct irq_cfg *cfg; | 1471 | struct irq_cfg *cfg; |
1472 | int node = cpu_to_node(boot_cpu_id); | 1472 | int node = cpu_to_node(0); |
1473 | 1473 | ||
1474 | apic_printk(APIC_VERBOSE, KERN_DEBUG "init IO_APIC IRQs\n"); | 1474 | apic_printk(APIC_VERBOSE, KERN_DEBUG "init IO_APIC IRQs\n"); |
1475 | 1475 | ||
@@ -1534,7 +1534,7 @@ static void __init setup_IO_APIC_irqs(void) | |||
1534 | void setup_IO_APIC_irq_extra(u32 gsi) | 1534 | void setup_IO_APIC_irq_extra(u32 gsi) |
1535 | { | 1535 | { |
1536 | int apic_id = 0, pin, idx, irq; | 1536 | int apic_id = 0, pin, idx, irq; |
1537 | int node = cpu_to_node(boot_cpu_id); | 1537 | int node = cpu_to_node(0); |
1538 | struct irq_desc *desc; | 1538 | struct irq_desc *desc; |
1539 | struct irq_cfg *cfg; | 1539 | struct irq_cfg *cfg; |
1540 | 1540 | ||
@@ -2913,7 +2913,7 @@ static inline void __init check_timer(void) | |||
2913 | { | 2913 | { |
2914 | struct irq_desc *desc = irq_to_desc(0); | 2914 | struct irq_desc *desc = irq_to_desc(0); |
2915 | struct irq_cfg *cfg = desc->chip_data; | 2915 | struct irq_cfg *cfg = desc->chip_data; |
2916 | int node = cpu_to_node(boot_cpu_id); | 2916 | int node = cpu_to_node(0); |
2917 | int apic1, pin1, apic2, pin2; | 2917 | int apic1, pin1, apic2, pin2; |
2918 | unsigned long flags; | 2918 | unsigned long flags; |
2919 | int no_pin1 = 0; | 2919 | int no_pin1 = 0; |
@@ -3267,7 +3267,7 @@ unsigned int create_irq_nr(unsigned int irq_want, int node) | |||
3267 | 3267 | ||
3268 | int create_irq(void) | 3268 | int create_irq(void) |
3269 | { | 3269 | { |
3270 | int node = cpu_to_node(boot_cpu_id); | 3270 | int node = cpu_to_node(0); |
3271 | unsigned int irq_want; | 3271 | unsigned int irq_want; |
3272 | int irq; | 3272 | int irq; |
3273 | 3273 | ||
@@ -3882,7 +3882,7 @@ static int __io_apic_set_pci_routing(struct device *dev, int irq, | |||
3882 | if (dev) | 3882 | if (dev) |
3883 | node = dev_to_node(dev); | 3883 | node = dev_to_node(dev); |
3884 | else | 3884 | else |
3885 | node = cpu_to_node(boot_cpu_id); | 3885 | node = cpu_to_node(0); |
3886 | 3886 | ||
3887 | desc = irq_to_desc_alloc_node(irq, node); | 3887 | desc = irq_to_desc_alloc_node(irq, node); |
3888 | if (!desc) { | 3888 | if (!desc) { |
diff --git a/arch/x86/kernel/cpu/amd.c b/arch/x86/kernel/cpu/amd.c index ba5f62f45f01..a8b4d91b8394 100644 --- a/arch/x86/kernel/cpu/amd.c +++ b/arch/x86/kernel/cpu/amd.c | |||
@@ -148,7 +148,7 @@ static void __cpuinit amd_k7_smp_check(struct cpuinfo_x86 *c) | |||
148 | { | 148 | { |
149 | #ifdef CONFIG_SMP | 149 | #ifdef CONFIG_SMP |
150 | /* calling is from identify_secondary_cpu() ? */ | 150 | /* calling is from identify_secondary_cpu() ? */ |
151 | if (c->cpu_index == boot_cpu_id) | 151 | if (!c->cpu_index) |
152 | return; | 152 | return; |
153 | 153 | ||
154 | /* | 154 | /* |
diff --git a/arch/x86/kernel/cpu/common.c b/arch/x86/kernel/cpu/common.c index 490dac63c2d2..787b3c7c6625 100644 --- a/arch/x86/kernel/cpu/common.c +++ b/arch/x86/kernel/cpu/common.c | |||
@@ -665,7 +665,7 @@ static void __init early_identify_cpu(struct cpuinfo_x86 *c) | |||
665 | this_cpu->c_early_init(c); | 665 | this_cpu->c_early_init(c); |
666 | 666 | ||
667 | #ifdef CONFIG_SMP | 667 | #ifdef CONFIG_SMP |
668 | c->cpu_index = boot_cpu_id; | 668 | c->cpu_index = 0; |
669 | #endif | 669 | #endif |
670 | filter_cpuid_features(c, false); | 670 | filter_cpuid_features(c, false); |
671 | } | 671 | } |
diff --git a/arch/x86/kernel/cpu/intel.c b/arch/x86/kernel/cpu/intel.c index 85f69cdeae10..3a683ea5267e 100644 --- a/arch/x86/kernel/cpu/intel.c +++ b/arch/x86/kernel/cpu/intel.c | |||
@@ -169,7 +169,7 @@ static void __cpuinit intel_smp_check(struct cpuinfo_x86 *c) | |||
169 | { | 169 | { |
170 | #ifdef CONFIG_SMP | 170 | #ifdef CONFIG_SMP |
171 | /* calling is from identify_secondary_cpu() ? */ | 171 | /* calling is from identify_secondary_cpu() ? */ |
172 | if (c->cpu_index == boot_cpu_id) | 172 | if (!c->cpu_index) |
173 | return; | 173 | return; |
174 | 174 | ||
175 | /* | 175 | /* |
diff --git a/arch/x86/kernel/early-quirks.c b/arch/x86/kernel/early-quirks.c index ebdb85cf2686..76b8cd953dee 100644 --- a/arch/x86/kernel/early-quirks.c +++ b/arch/x86/kernel/early-quirks.c | |||
@@ -97,7 +97,6 @@ static void __init nvidia_bugs(int num, int slot, int func) | |||
97 | } | 97 | } |
98 | 98 | ||
99 | #if defined(CONFIG_ACPI) && defined(CONFIG_X86_IO_APIC) | 99 | #if defined(CONFIG_ACPI) && defined(CONFIG_X86_IO_APIC) |
100 | #if defined(CONFIG_ACPI) && defined(CONFIG_X86_IO_APIC) | ||
101 | static u32 __init ati_ixp4x0_rev(int num, int slot, int func) | 100 | static u32 __init ati_ixp4x0_rev(int num, int slot, int func) |
102 | { | 101 | { |
103 | u32 d; | 102 | u32 d; |
@@ -115,7 +114,6 @@ static u32 __init ati_ixp4x0_rev(int num, int slot, int func) | |||
115 | d &= 0xff; | 114 | d &= 0xff; |
116 | return d; | 115 | return d; |
117 | } | 116 | } |
118 | #endif | ||
119 | 117 | ||
120 | static void __init ati_bugs(int num, int slot, int func) | 118 | static void __init ati_bugs(int num, int slot, int func) |
121 | { | 119 | { |
diff --git a/arch/x86/kernel/machine_kexec_64.c b/arch/x86/kernel/machine_kexec_64.c index 035c8c529181..b3ea9db39db6 100644 --- a/arch/x86/kernel/machine_kexec_64.c +++ b/arch/x86/kernel/machine_kexec_64.c | |||
@@ -36,7 +36,7 @@ static int init_one_level2_page(struct kimage *image, pgd_t *pgd, | |||
36 | if (!page) | 36 | if (!page) |
37 | goto out; | 37 | goto out; |
38 | pud = (pud_t *)page_address(page); | 38 | pud = (pud_t *)page_address(page); |
39 | memset(pud, 0, PAGE_SIZE); | 39 | clear_page(pud); |
40 | set_pgd(pgd, __pgd(__pa(pud) | _KERNPG_TABLE)); | 40 | set_pgd(pgd, __pgd(__pa(pud) | _KERNPG_TABLE)); |
41 | } | 41 | } |
42 | pud = pud_offset(pgd, addr); | 42 | pud = pud_offset(pgd, addr); |
@@ -45,7 +45,7 @@ static int init_one_level2_page(struct kimage *image, pgd_t *pgd, | |||
45 | if (!page) | 45 | if (!page) |
46 | goto out; | 46 | goto out; |
47 | pmd = (pmd_t *)page_address(page); | 47 | pmd = (pmd_t *)page_address(page); |
48 | memset(pmd, 0, PAGE_SIZE); | 48 | clear_page(pmd); |
49 | set_pud(pud, __pud(__pa(pmd) | _KERNPG_TABLE)); | 49 | set_pud(pud, __pud(__pa(pmd) | _KERNPG_TABLE)); |
50 | } | 50 | } |
51 | pmd = pmd_offset(pud, addr); | 51 | pmd = pmd_offset(pud, addr); |
diff --git a/arch/x86/kernel/reboot.c b/arch/x86/kernel/reboot.c index e3af342fe83a..7a4cf14223ba 100644 --- a/arch/x86/kernel/reboot.c +++ b/arch/x86/kernel/reboot.c | |||
@@ -84,7 +84,7 @@ static int __init reboot_setup(char *str) | |||
84 | } | 84 | } |
85 | /* we will leave sorting out the final value | 85 | /* we will leave sorting out the final value |
86 | when we are ready to reboot, since we might not | 86 | when we are ready to reboot, since we might not |
87 | have set up boot_cpu_id or smp_num_cpu */ | 87 | have detected BSP APIC ID or smp_num_cpu */ |
88 | break; | 88 | break; |
89 | #endif /* CONFIG_SMP */ | 89 | #endif /* CONFIG_SMP */ |
90 | 90 | ||
diff --git a/arch/x86/kernel/setup.c b/arch/x86/kernel/setup.c index c3a4fbb2b996..7d5ee08c982d 100644 --- a/arch/x86/kernel/setup.c +++ b/arch/x86/kernel/setup.c | |||
@@ -125,7 +125,6 @@ unsigned long max_pfn_mapped; | |||
125 | RESERVE_BRK(dmi_alloc, 65536); | 125 | RESERVE_BRK(dmi_alloc, 65536); |
126 | #endif | 126 | #endif |
127 | 127 | ||
128 | unsigned int boot_cpu_id __read_mostly; | ||
129 | 128 | ||
130 | static __initdata unsigned long _brk_start = (unsigned long)__brk_base; | 129 | static __initdata unsigned long _brk_start = (unsigned long)__brk_base; |
131 | unsigned long _brk_end = (unsigned long)__brk_base; | 130 | unsigned long _brk_end = (unsigned long)__brk_base; |
diff --git a/arch/x86/kernel/setup_percpu.c b/arch/x86/kernel/setup_percpu.c index a60df9ae6454..2335c15c93a4 100644 --- a/arch/x86/kernel/setup_percpu.c +++ b/arch/x86/kernel/setup_percpu.c | |||
@@ -253,7 +253,7 @@ void __init setup_per_cpu_areas(void) | |||
253 | * Up to this point, the boot CPU has been using .init.data | 253 | * Up to this point, the boot CPU has been using .init.data |
254 | * area. Reload any changed state for the boot CPU. | 254 | * area. Reload any changed state for the boot CPU. |
255 | */ | 255 | */ |
256 | if (cpu == boot_cpu_id) | 256 | if (!cpu) |
257 | switch_to_new_gdt(cpu); | 257 | switch_to_new_gdt(cpu); |
258 | } | 258 | } |
259 | 259 | ||