Commit 4c59f3e6 authored by David Rientjes's avatar David Rientjes Committed by H. Peter Anvin

x86, apic: Replace noop_check_apicid_used

noop_check_apicid_used() has the same implementation as
default_check_apicid_used() in the standard header file, so replace the
former with the latter.
Signed-off-by: default avatarDavid Rientjes <rientjes@google.com>
Link: http://lkml.kernel.org/r/alpine.DEB.2.02.1407302350450.17503@chino.kir.corp.google.comSigned-off-by: default avatarH. Peter Anvin <hpa@zytor.com>
parent 658ffd7e
...@@ -89,11 +89,6 @@ static const struct cpumask *noop_target_cpus(void) ...@@ -89,11 +89,6 @@ static const struct cpumask *noop_target_cpus(void)
return cpumask_of(0); return cpumask_of(0);
} }
static unsigned long noop_check_apicid_used(physid_mask_t *map, int apicid)
{
return physid_isset(apicid, *map);
}
static void noop_vector_allocation_domain(int cpu, struct cpumask *retmask, static void noop_vector_allocation_domain(int cpu, struct cpumask *retmask,
const struct cpumask *mask) const struct cpumask *mask)
{ {
...@@ -128,7 +123,7 @@ struct apic apic_noop = { ...@@ -128,7 +123,7 @@ struct apic apic_noop = {
.target_cpus = noop_target_cpus, .target_cpus = noop_target_cpus,
.disable_esr = 0, .disable_esr = 0,
.dest_logical = APIC_DEST_LOGICAL, .dest_logical = APIC_DEST_LOGICAL,
.check_apicid_used = noop_check_apicid_used, .check_apicid_used = default_check_apicid_used,
.vector_allocation_domain = noop_vector_allocation_domain, .vector_allocation_domain = noop_vector_allocation_domain,
.init_apic_ldr = noop_init_apic_ldr, .init_apic_ldr = noop_init_apic_ldr,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment