diff options
Diffstat (limited to 'arch/x86/kernel/apic/x2apic_phys.c')
| -rw-r--r-- | arch/x86/kernel/apic/x2apic_phys.c | 39 | 
1 files changed, 3 insertions, 36 deletions
diff --git a/arch/x86/kernel/apic/x2apic_phys.c b/arch/x86/kernel/apic/x2apic_phys.c index c17e982db27..e03a1e180e8 100644 --- a/arch/x86/kernel/apic/x2apic_phys.c +++ b/arch/x86/kernel/apic/x2apic_phys.c @@ -76,38 +76,6 @@ static void x2apic_send_IPI_all(int vector)  	__x2apic_send_IPI_mask(cpu_online_mask, vector, APIC_DEST_ALLINC);  } -static unsigned int x2apic_cpu_mask_to_apicid(const struct cpumask *cpumask) -{ -	/* -	 * We're using fixed IRQ delivery, can only return one phys APIC ID. -	 * May as well be the first. -	 */ -	int cpu = cpumask_first(cpumask); - -	if ((unsigned)cpu < nr_cpu_ids) -		return per_cpu(x86_cpu_to_apicid, cpu); -	else -		return BAD_APICID; -} - -static unsigned int -x2apic_cpu_mask_to_apicid_and(const struct cpumask *cpumask, -			      const struct cpumask *andmask) -{ -	int cpu; - -	/* -	 * We're using fixed IRQ delivery, can only return one phys APIC ID. -	 * May as well be the first. -	 */ -	for_each_cpu_and(cpu, cpumask, andmask) { -		if (cpumask_test_cpu(cpu, cpu_online_mask)) -			break; -	} - -	return per_cpu(x86_cpu_to_apicid, cpu); -} -  static void init_x2apic_ldr(void)  {  } @@ -131,13 +99,13 @@ static struct apic apic_x2apic_phys = {  	.irq_delivery_mode		= dest_Fixed,  	.irq_dest_mode			= 0, /* physical */ -	.target_cpus			= x2apic_target_cpus, +	.target_cpus			= online_target_cpus,  	.disable_esr			= 0,  	.dest_logical			= 0,  	.check_apicid_used		= NULL,  	.check_apicid_present		= NULL, -	.vector_allocation_domain	= x2apic_vector_allocation_domain, +	.vector_allocation_domain	= default_vector_allocation_domain,  	.init_apic_ldr			= init_x2apic_ldr,  	.ioapic_phys_id_map		= NULL, @@ -155,8 +123,7 @@ static struct apic apic_x2apic_phys = {  	.set_apic_id			= x2apic_set_apic_id,  	.apic_id_mask			= 0xFFFFFFFFu, -	.cpu_mask_to_apicid		= x2apic_cpu_mask_to_apicid, -	.cpu_mask_to_apicid_and		= x2apic_cpu_mask_to_apicid_and, +	.cpu_mask_to_apicid_and		= default_cpu_mask_to_apicid_and,  	.send_IPI_mask			= x2apic_send_IPI_mask,  	.send_IPI_mask_allbutself	= x2apic_send_IPI_mask_allbutself,  |