Skip to content

Commit e11dada

Browse files
committed
x86: apic namespace cleanup
boot_cpu_physical_apicid is a global variable and used as function argument as well. Rename the function arguments to avoid confusion. Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
1 parent bc07844 commit e11dada

File tree

5 files changed

+12
-12
lines changed

5 files changed

+12
-12
lines changed

arch/x86/include/asm/apic.h

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -292,7 +292,7 @@ struct apic {
292292
int (*cpu_present_to_apicid)(int mps_cpu);
293293
physid_mask_t (*apicid_to_cpu_present)(int phys_apicid);
294294
void (*setup_portio_remap)(void);
295-
int (*check_phys_apicid_present)(int boot_cpu_physical_apicid);
295+
int (*check_phys_apicid_present)(int phys_apicid);
296296
void (*enable_apic_mode)(void);
297297
int (*phys_pkg_id)(int cpuid_apic, int index_msb);
298298

@@ -426,7 +426,7 @@ extern struct apic apic_x2apic_uv_x;
426426
DECLARE_PER_CPU(int, x2apic_extra_bits);
427427

428428
extern int default_cpu_present_to_apicid(int mps_cpu);
429-
extern int default_check_phys_apicid_present(int boot_cpu_physical_apicid);
429+
extern int default_check_phys_apicid_present(int phys_apicid);
430430
#endif
431431

432432
static inline void default_wait_for_init_deassert(atomic_t *deassert)
@@ -542,9 +542,9 @@ static inline int __default_cpu_present_to_apicid(int mps_cpu)
542542
}
543543

544544
static inline int
545-
__default_check_phys_apicid_present(int boot_cpu_physical_apicid)
545+
__default_check_phys_apicid_present(int phys_apicid)
546546
{
547-
return physid_isset(boot_cpu_physical_apicid, phys_cpu_present_map);
547+
return physid_isset(phys_apicid, phys_cpu_present_map);
548548
}
549549

550550
#ifdef CONFIG_X86_32
@@ -554,13 +554,13 @@ static inline int default_cpu_present_to_apicid(int mps_cpu)
554554
}
555555

556556
static inline int
557-
default_check_phys_apicid_present(int boot_cpu_physical_apicid)
557+
default_check_phys_apicid_present(int phys_apicid)
558558
{
559-
return __default_check_phys_apicid_present(boot_cpu_physical_apicid);
559+
return __default_check_phys_apicid_present(phys_apicid);
560560
}
561561
#else
562562
extern int default_cpu_present_to_apicid(int mps_cpu);
563-
extern int default_check_phys_apicid_present(int boot_cpu_physical_apicid);
563+
extern int default_check_phys_apicid_present(int phys_apicid);
564564
#endif
565565

566566
static inline physid_mask_t default_apicid_to_cpu_present(int phys_apicid)

arch/x86/kernel/apic/bigsmp_32.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ static physid_mask_t bigsmp_ioapic_phys_id_map(physid_mask_t phys_map)
112112
return physids_promote(0xFFL);
113113
}
114114

115-
static int bigsmp_check_phys_apicid_present(int boot_cpu_physical_apicid)
115+
static int bigsmp_check_phys_apicid_present(int phys_apicid)
116116
{
117117
return 1;
118118
}

arch/x86/kernel/apic/numaq_32.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -413,7 +413,7 @@ static inline physid_mask_t numaq_apicid_to_cpu_present(int logical_apicid)
413413
/* Where the IO area was mapped on multiquad, always 0 otherwise */
414414
void *xquad_portio;
415415

416-
static inline int numaq_check_phys_apicid_present(int boot_cpu_physical_apicid)
416+
static inline int numaq_check_phys_apicid_present(int phys_apicid)
417417
{
418418
return 1;
419419
}

arch/x86/kernel/apic/summit_32.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -272,7 +272,7 @@ static physid_mask_t summit_apicid_to_cpu_present(int apicid)
272272
return physid_mask_of_physid(0);
273273
}
274274

275-
static int summit_check_phys_apicid_present(int boot_cpu_physical_apicid)
275+
static int summit_check_phys_apicid_present(int physical_apicid)
276276
{
277277
return 1;
278278
}

arch/x86/kernel/setup.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -129,9 +129,9 @@ int default_cpu_present_to_apicid(int mps_cpu)
129129
return __default_cpu_present_to_apicid(mps_cpu);
130130
}
131131

132-
int default_check_phys_apicid_present(int boot_cpu_physical_apicid)
132+
int default_check_phys_apicid_present(int phys_apicid)
133133
{
134-
return __default_check_phys_apicid_present(boot_cpu_physical_apicid);
134+
return __default_check_phys_apicid_present(phys_apicid);
135135
}
136136
#endif
137137

0 commit comments

Comments
 (0)