diff options
Diffstat (limited to 'arch/x86/kernel/apic/apic_noop.c')
-rw-r--r-- | arch/x86/kernel/apic/apic_noop.c | 23 |
1 files changed, 1 insertions, 22 deletions
diff --git a/arch/x86/kernel/apic/apic_noop.c b/arch/x86/kernel/apic/apic_noop.c index 8c7c98249c20..b205cdbdbe6a 100644 --- a/arch/x86/kernel/apic/apic_noop.c +++ b/arch/x86/kernel/apic/apic_noop.c | |||
@@ -89,16 +89,6 @@ static const struct cpumask *noop_target_cpus(void) | |||
89 | return cpumask_of(0); | 89 | return cpumask_of(0); |
90 | } | 90 | } |
91 | 91 | ||
92 | static unsigned long noop_check_apicid_used(physid_mask_t *map, int apicid) | ||
93 | { | ||
94 | return physid_isset(apicid, *map); | ||
95 | } | ||
96 | |||
97 | static unsigned long noop_check_apicid_present(int bit) | ||
98 | { | ||
99 | return physid_isset(bit, phys_cpu_present_map); | ||
100 | } | ||
101 | |||
102 | static void noop_vector_allocation_domain(int cpu, struct cpumask *retmask, | 92 | static void noop_vector_allocation_domain(int cpu, struct cpumask *retmask, |
103 | const struct cpumask *mask) | 93 | const struct cpumask *mask) |
104 | { | 94 | { |
@@ -133,27 +123,21 @@ struct apic apic_noop = { | |||
133 | .target_cpus = noop_target_cpus, | 123 | .target_cpus = noop_target_cpus, |
134 | .disable_esr = 0, | 124 | .disable_esr = 0, |
135 | .dest_logical = APIC_DEST_LOGICAL, | 125 | .dest_logical = APIC_DEST_LOGICAL, |
136 | .check_apicid_used = noop_check_apicid_used, | 126 | .check_apicid_used = default_check_apicid_used, |
137 | .check_apicid_present = noop_check_apicid_present, | ||
138 | 127 | ||
139 | .vector_allocation_domain = noop_vector_allocation_domain, | 128 | .vector_allocation_domain = noop_vector_allocation_domain, |
140 | .init_apic_ldr = noop_init_apic_ldr, | 129 | .init_apic_ldr = noop_init_apic_ldr, |
141 | 130 | ||
142 | .ioapic_phys_id_map = default_ioapic_phys_id_map, | 131 | .ioapic_phys_id_map = default_ioapic_phys_id_map, |
143 | .setup_apic_routing = NULL, | 132 | .setup_apic_routing = NULL, |
144 | .multi_timer_check = NULL, | ||
145 | 133 | ||
146 | .cpu_present_to_apicid = default_cpu_present_to_apicid, | 134 | .cpu_present_to_apicid = default_cpu_present_to_apicid, |
147 | .apicid_to_cpu_present = physid_set_mask_of_physid, | 135 | .apicid_to_cpu_present = physid_set_mask_of_physid, |
148 | 136 | ||
149 | .setup_portio_remap = NULL, | ||
150 | .check_phys_apicid_present = default_check_phys_apicid_present, | 137 | .check_phys_apicid_present = default_check_phys_apicid_present, |
151 | .enable_apic_mode = NULL, | ||
152 | 138 | ||
153 | .phys_pkg_id = noop_phys_pkg_id, | 139 | .phys_pkg_id = noop_phys_pkg_id, |
154 | 140 | ||
155 | .mps_oem_check = NULL, | ||
156 | |||
157 | .get_apic_id = noop_get_apic_id, | 141 | .get_apic_id = noop_get_apic_id, |
158 | .set_apic_id = NULL, | 142 | .set_apic_id = NULL, |
159 | .apic_id_mask = 0x0F << 24, | 143 | .apic_id_mask = 0x0F << 24, |
@@ -168,12 +152,7 @@ struct apic apic_noop = { | |||
168 | 152 | ||
169 | .wakeup_secondary_cpu = noop_wakeup_secondary_cpu, | 153 | .wakeup_secondary_cpu = noop_wakeup_secondary_cpu, |
170 | 154 | ||
171 | /* should be safe */ | ||
172 | .trampoline_phys_low = DEFAULT_TRAMPOLINE_PHYS_LOW, | ||
173 | .trampoline_phys_high = DEFAULT_TRAMPOLINE_PHYS_HIGH, | ||
174 | |||
175 | .wait_for_init_deassert = false, | 155 | .wait_for_init_deassert = false, |
176 | .smp_callin_clear_local_apic = NULL, | ||
177 | .inquire_remote_apic = NULL, | 156 | .inquire_remote_apic = NULL, |
178 | 157 | ||
179 | .read = noop_apic_read, | 158 | .read = noop_apic_read, |