aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/include/asm/apic.h
diff options
context:
space:
mode:
authorThomas Gleixner <tglx@linutronix.de>2009-08-31 09:18:40 -0400
committerThomas Gleixner <tglx@linutronix.de>2009-08-31 15:30:47 -0400
commite11dadabf443dc3101f28b74d8b9d56870a87db4 (patch)
tree722c88b59aef0a7ac0252bc629e89232d77a3d74 /arch/x86/include/asm/apic.h
parentbc07844a33734c4b2f32ef26d942d2f3ef9302ea (diff)
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>
Diffstat (limited to 'arch/x86/include/asm/apic.h')
-rw-r--r--arch/x86/include/asm/apic.h14
1 files changed, 7 insertions, 7 deletions
diff --git a/arch/x86/include/asm/apic.h b/arch/x86/include/asm/apic.h
index 6f15b29005a1..d6a0f2636a61 100644
--- a/arch/x86/include/asm/apic.h
+++ b/arch/x86/include/asm/apic.h
@@ -292,7 +292,7 @@ struct apic {
292 int (*cpu_present_to_apicid)(int mps_cpu); 292 int (*cpu_present_to_apicid)(int mps_cpu);
293 physid_mask_t (*apicid_to_cpu_present)(int phys_apicid); 293 physid_mask_t (*apicid_to_cpu_present)(int phys_apicid);
294 void (*setup_portio_remap)(void); 294 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);
296 void (*enable_apic_mode)(void); 296 void (*enable_apic_mode)(void);
297 int (*phys_pkg_id)(int cpuid_apic, int index_msb); 297 int (*phys_pkg_id)(int cpuid_apic, int index_msb);
298 298
@@ -426,7 +426,7 @@ extern struct apic apic_x2apic_uv_x;
426DECLARE_PER_CPU(int, x2apic_extra_bits); 426DECLARE_PER_CPU(int, x2apic_extra_bits);
427 427
428extern int default_cpu_present_to_apicid(int mps_cpu); 428extern int default_cpu_present_to_apicid(int mps_cpu);
429extern int default_check_phys_apicid_present(int boot_cpu_physical_apicid); 429extern int default_check_phys_apicid_present(int phys_apicid);
430#endif 430#endif
431 431
432static inline void default_wait_for_init_deassert(atomic_t *deassert) 432static 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)
542} 542}
543 543
544static inline int 544static inline int
545__default_check_phys_apicid_present(int boot_cpu_physical_apicid) 545__default_check_phys_apicid_present(int phys_apicid)
546{ 546{
547 return physid_isset(boot_cpu_physical_apicid, phys_cpu_present_map); 547 return physid_isset(phys_apicid, phys_cpu_present_map);
548} 548}
549 549
550#ifdef CONFIG_X86_32 550#ifdef CONFIG_X86_32
@@ -554,13 +554,13 @@ static inline int default_cpu_present_to_apicid(int mps_cpu)
554} 554}
555 555
556static inline int 556static inline int
557default_check_phys_apicid_present(int boot_cpu_physical_apicid) 557default_check_phys_apicid_present(int phys_apicid)
558{ 558{
559 return __default_check_phys_apicid_present(boot_cpu_physical_apicid); 559 return __default_check_phys_apicid_present(phys_apicid);
560} 560}
561#else 561#else
562extern int default_cpu_present_to_apicid(int mps_cpu); 562extern int default_cpu_present_to_apicid(int mps_cpu);
563extern int default_check_phys_apicid_present(int boot_cpu_physical_apicid); 563extern int default_check_phys_apicid_present(int phys_apicid);
564#endif 564#endif
565 565
566static inline physid_mask_t default_apicid_to_cpu_present(int phys_apicid) 566static inline physid_mask_t default_apicid_to_cpu_present(int phys_apicid)