diff options
Diffstat (limited to 'arch/x86/kernel/apic/apic_flat_64.c')
| -rw-r--r-- | arch/x86/kernel/apic/apic_flat_64.c | 20 |
1 files changed, 2 insertions, 18 deletions
diff --git a/arch/x86/kernel/apic/apic_flat_64.c b/arch/x86/kernel/apic/apic_flat_64.c index 3b002995e145..0014714ea97b 100644 --- a/arch/x86/kernel/apic/apic_flat_64.c +++ b/arch/x86/kernel/apic/apic_flat_64.c | |||
| @@ -159,20 +159,6 @@ static int flat_apic_id_registered(void) | |||
| 159 | return physid_isset(read_xapic_id(), phys_cpu_present_map); | 159 | return physid_isset(read_xapic_id(), phys_cpu_present_map); |
| 160 | } | 160 | } |
| 161 | 161 | ||
| 162 | static unsigned int flat_cpu_mask_to_apicid(const struct cpumask *cpumask) | ||
| 163 | { | ||
| 164 | return cpumask_bits(cpumask)[0] & APIC_ALL_CPUS; | ||
| 165 | } | ||
| 166 | |||
| 167 | static unsigned int flat_cpu_mask_to_apicid_and(const struct cpumask *cpumask, | ||
| 168 | const struct cpumask *andmask) | ||
| 169 | { | ||
| 170 | unsigned long mask1 = cpumask_bits(cpumask)[0] & APIC_ALL_CPUS; | ||
| 171 | unsigned long mask2 = cpumask_bits(andmask)[0] & APIC_ALL_CPUS; | ||
| 172 | |||
| 173 | return mask1 & mask2; | ||
| 174 | } | ||
| 175 | |||
| 176 | static int flat_phys_pkg_id(int initial_apic_id, int index_msb) | 162 | static int flat_phys_pkg_id(int initial_apic_id, int index_msb) |
| 177 | { | 163 | { |
| 178 | return hard_smp_processor_id() >> index_msb; | 164 | return hard_smp_processor_id() >> index_msb; |
| @@ -213,8 +199,8 @@ struct apic apic_flat = { | |||
| 213 | .set_apic_id = set_apic_id, | 199 | .set_apic_id = set_apic_id, |
| 214 | .apic_id_mask = 0xFFu << 24, | 200 | .apic_id_mask = 0xFFu << 24, |
| 215 | 201 | ||
| 216 | .cpu_mask_to_apicid = flat_cpu_mask_to_apicid, | 202 | .cpu_mask_to_apicid = default_cpu_mask_to_apicid, |
| 217 | .cpu_mask_to_apicid_and = flat_cpu_mask_to_apicid_and, | 203 | .cpu_mask_to_apicid_and = default_cpu_mask_to_apicid_and, |
| 218 | 204 | ||
| 219 | .send_IPI_mask = flat_send_IPI_mask, | 205 | .send_IPI_mask = flat_send_IPI_mask, |
| 220 | .send_IPI_mask_allbutself = flat_send_IPI_mask_allbutself, | 206 | .send_IPI_mask_allbutself = flat_send_IPI_mask_allbutself, |
| @@ -222,7 +208,6 @@ struct apic apic_flat = { | |||
| 222 | .send_IPI_all = flat_send_IPI_all, | 208 | .send_IPI_all = flat_send_IPI_all, |
| 223 | .send_IPI_self = apic_send_IPI_self, | 209 | .send_IPI_self = apic_send_IPI_self, |
| 224 | 210 | ||
| 225 | .wakeup_cpu = NULL, | ||
| 226 | .trampoline_phys_low = DEFAULT_TRAMPOLINE_PHYS_LOW, | 211 | .trampoline_phys_low = DEFAULT_TRAMPOLINE_PHYS_LOW, |
| 227 | .trampoline_phys_high = DEFAULT_TRAMPOLINE_PHYS_HIGH, | 212 | .trampoline_phys_high = DEFAULT_TRAMPOLINE_PHYS_HIGH, |
| 228 | .wait_for_init_deassert = NULL, | 213 | .wait_for_init_deassert = NULL, |
| @@ -373,7 +358,6 @@ struct apic apic_physflat = { | |||
| 373 | .send_IPI_all = physflat_send_IPI_all, | 358 | .send_IPI_all = physflat_send_IPI_all, |
| 374 | .send_IPI_self = apic_send_IPI_self, | 359 | .send_IPI_self = apic_send_IPI_self, |
| 375 | 360 | ||
| 376 | .wakeup_cpu = NULL, | ||
| 377 | .trampoline_phys_low = DEFAULT_TRAMPOLINE_PHYS_LOW, | 361 | .trampoline_phys_low = DEFAULT_TRAMPOLINE_PHYS_LOW, |
| 378 | .trampoline_phys_high = DEFAULT_TRAMPOLINE_PHYS_HIGH, | 362 | .trampoline_phys_high = DEFAULT_TRAMPOLINE_PHYS_HIGH, |
| 379 | .wait_for_init_deassert = NULL, | 363 | .wait_for_init_deassert = NULL, |
