Skip to content

Commit 1d90c9f

Browse files
KAGA-KOKOhansendc
authored andcommitted
x86/apic: Nuke unused apic::inquire_remote_apic()
Put it to the other historical leftovers. Signed-off-by: Thomas Gleixner <[email protected]> Signed-off-by: Dave Hansen <[email protected]> Acked-by: Peter Zijlstra (Intel) <[email protected]> Tested-by: Michael Kelley <[email protected]> Tested-by: Sohil Mehta <[email protected]> Tested-by: Juergen Gross <[email protected]> # Xen PV (dom0 and unpriv. guest)
1 parent b3bc5dd commit 1d90c9f

File tree

11 files changed

+0
-78
lines changed

11 files changed

+0
-78
lines changed

arch/x86/include/asm/apic.h

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -66,20 +66,6 @@ enum apic_intr_mode_id {
6666
APIC_SYMMETRIC_IO_NO_ROUTING
6767
};
6868

69-
#ifdef CONFIG_SMP
70-
extern void __inquire_remote_apic(int apicid);
71-
#else /* CONFIG_SMP */
72-
static inline void __inquire_remote_apic(int apicid)
73-
{
74-
}
75-
#endif /* CONFIG_SMP */
76-
77-
static inline void default_inquire_remote_apic(int apicid)
78-
{
79-
if (apic_verbosity >= APIC_DEBUG)
80-
__inquire_remote_apic(apicid);
81-
}
82-
8369
/*
8470
* With 82489DX we can't rely on apic feature bit
8571
* retrieved via cpuid but still have to deal with
@@ -330,8 +316,6 @@ struct apic {
330316
/* wakeup secondary CPU using 64-bit wakeup point */
331317
int (*wakeup_secondary_cpu_64)(int apicid, unsigned long start_eip);
332318

333-
void (*inquire_remote_apic)(int apicid);
334-
335319
#ifdef CONFIG_X86_32
336320
/*
337321
* Called very early during boot from get_smp_config(). It should

arch/x86/kernel/apic/apic_flat_64.c

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -139,8 +139,6 @@ static struct apic apic_flat __ro_after_init = {
139139
.send_IPI_all = default_send_IPI_all,
140140
.send_IPI_self = default_send_IPI_self,
141141

142-
.inquire_remote_apic = default_inquire_remote_apic,
143-
144142
.read = native_apic_mem_read,
145143
.write = native_apic_mem_write,
146144
.eoi_write = native_apic_mem_write,
@@ -230,8 +228,6 @@ static struct apic apic_physflat __ro_after_init = {
230228
.send_IPI_all = default_send_IPI_all,
231229
.send_IPI_self = default_send_IPI_self,
232230

233-
.inquire_remote_apic = default_inquire_remote_apic,
234-
235231
.read = native_apic_mem_read,
236232
.write = native_apic_mem_write,
237233
.eoi_write = native_apic_mem_write,

arch/x86/kernel/apic/apic_noop.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -125,8 +125,6 @@ struct apic apic_noop __ro_after_init = {
125125

126126
.wakeup_secondary_cpu = noop_wakeup_secondary_cpu,
127127

128-
.inquire_remote_apic = NULL,
129-
130128
.read = noop_apic_read,
131129
.write = noop_apic_write,
132130
.eoi_write = noop_apic_write,

arch/x86/kernel/apic/apic_numachip.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -273,7 +273,6 @@ static const struct apic apic_numachip1 __refconst = {
273273
.send_IPI_self = numachip_send_IPI_self,
274274

275275
.wakeup_secondary_cpu = numachip_wakeup_secondary,
276-
.inquire_remote_apic = NULL, /* REMRD not supported */
277276

278277
.read = native_apic_mem_read,
279278
.write = native_apic_mem_write,
@@ -320,7 +319,6 @@ static const struct apic apic_numachip2 __refconst = {
320319
.send_IPI_self = numachip_send_IPI_self,
321320

322321
.wakeup_secondary_cpu = numachip_wakeup_secondary,
323-
.inquire_remote_apic = NULL, /* REMRD not supported */
324322

325323
.read = native_apic_mem_read,
326324
.write = native_apic_mem_write,

arch/x86/kernel/apic/bigsmp_32.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -153,8 +153,6 @@ static struct apic apic_bigsmp __ro_after_init = {
153153
.send_IPI_all = bigsmp_send_IPI_all,
154154
.send_IPI_self = default_send_IPI_self,
155155

156-
.inquire_remote_apic = default_inquire_remote_apic,
157-
158156
.read = native_apic_mem_read,
159157
.write = native_apic_mem_write,
160158
.eoi_write = native_apic_mem_write,

arch/x86/kernel/apic/probe_32.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,8 +95,6 @@ static struct apic apic_default __ro_after_init = {
9595
.send_IPI_all = default_send_IPI_all,
9696
.send_IPI_self = default_send_IPI_self,
9797

98-
.inquire_remote_apic = default_inquire_remote_apic,
99-
10098
.read = native_apic_mem_read,
10199
.write = native_apic_mem_write,
102100
.eoi_write = native_apic_mem_write,

arch/x86/kernel/apic/x2apic_cluster.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -265,8 +265,6 @@ static struct apic apic_x2apic_cluster __ro_after_init = {
265265
.send_IPI_all = x2apic_send_IPI_all,
266266
.send_IPI_self = x2apic_send_IPI_self,
267267

268-
.inquire_remote_apic = NULL,
269-
270268
.read = native_apic_msr_read,
271269
.write = native_apic_msr_write,
272270
.eoi_write = native_apic_msr_eoi_write,

arch/x86/kernel/apic/x2apic_phys.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -189,8 +189,6 @@ static struct apic apic_x2apic_phys __ro_after_init = {
189189
.send_IPI_all = x2apic_send_IPI_all,
190190
.send_IPI_self = x2apic_send_IPI_self,
191191

192-
.inquire_remote_apic = NULL,
193-
194192
.read = native_apic_msr_read,
195193
.write = native_apic_msr_write,
196194
.eoi_write = native_apic_msr_eoi_write,

arch/x86/kernel/apic/x2apic_uv_x.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -862,7 +862,6 @@ static struct apic apic_x2apic_uv_x __ro_after_init = {
862862
.send_IPI_self = uv_send_IPI_self,
863863

864864
.wakeup_secondary_cpu = uv_wakeup_secondary,
865-
.inquire_remote_apic = NULL,
866865

867866
.read = native_apic_msr_read,
868867
.write = native_apic_msr_write,

arch/x86/kernel/smpboot.c

Lines changed: 0 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -774,44 +774,6 @@ static void impress_friends(void)
774774
pr_debug("Before bogocount - setting activated=1\n");
775775
}
776776

777-
void __inquire_remote_apic(int apicid)
778-
{
779-
unsigned i, regs[] = { APIC_ID >> 4, APIC_LVR >> 4, APIC_SPIV >> 4 };
780-
const char * const names[] = { "ID", "VERSION", "SPIV" };
781-
int timeout;
782-
u32 status;
783-
784-
pr_info("Inquiring remote APIC 0x%x...\n", apicid);
785-
786-
for (i = 0; i < ARRAY_SIZE(regs); i++) {
787-
pr_info("... APIC 0x%x %s: ", apicid, names[i]);
788-
789-
/*
790-
* Wait for idle.
791-
*/
792-
status = safe_apic_wait_icr_idle();
793-
if (status)
794-
pr_cont("a previous APIC delivery may have failed\n");
795-
796-
apic_icr_write(APIC_DM_REMRD | regs[i], apicid);
797-
798-
timeout = 0;
799-
do {
800-
udelay(100);
801-
status = apic_read(APIC_ICR) & APIC_ICR_RR_MASK;
802-
} while (status == APIC_ICR_RR_INPROG && timeout++ < 1000);
803-
804-
switch (status) {
805-
case APIC_ICR_RR_VALID:
806-
status = apic_read(APIC_RRR);
807-
pr_cont("%08x\n", status);
808-
break;
809-
default:
810-
pr_cont("failed\n");
811-
}
812-
}
813-
}
814-
815777
/*
816778
* The Multiprocessor Specification 1.4 (1997) example code suggests
817779
* that there should be a 10ms delay between the BSP asserting INIT

arch/x86/xen/apic.c

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -129,10 +129,6 @@ static void xen_noop(void)
129129
{
130130
}
131131

132-
static void xen_silent_inquire(int apicid)
133-
{
134-
}
135-
136132
static int xen_cpu_present_to_apicid(int cpu)
137133
{
138134
if (cpu_present(cpu))
@@ -173,9 +169,6 @@ static struct apic xen_pv_apic = {
173169
.send_IPI_all = xen_send_IPI_all,
174170
.send_IPI_self = xen_send_IPI_self,
175171
#endif
176-
/* .wait_for_init_deassert- used by AP bootup - smp_callin which we don't use */
177-
.inquire_remote_apic = xen_silent_inquire,
178-
179172
.read = xen_apic_read,
180173
.write = xen_apic_write,
181174
.eoi_write = xen_apic_write,

0 commit comments

Comments
 (0)