diff options
author | Thomas Gleixner <tglx@linutronix.de> | 2009-08-31 09:18:40 -0400 |
---|---|---|
committer | Thomas Gleixner <tglx@linutronix.de> | 2009-08-31 15:30:47 -0400 |
commit | e11dadabf443dc3101f28b74d8b9d56870a87db4 (patch) | |
tree | 722c88b59aef0a7ac0252bc629e89232d77a3d74 /arch/x86/include/asm/apic.h | |
parent | bc07844a33734c4b2f32ef26d942d2f3ef9302ea (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.h | 14 |
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; | |||
426 | DECLARE_PER_CPU(int, x2apic_extra_bits); | 426 | DECLARE_PER_CPU(int, x2apic_extra_bits); |
427 | 427 | ||
428 | extern int default_cpu_present_to_apicid(int mps_cpu); | 428 | 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); |
430 | #endif | 430 | #endif |
431 | 431 | ||
432 | static inline void default_wait_for_init_deassert(atomic_t *deassert) | 432 | 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) | |||
542 | } | 542 | } |
543 | 543 | ||
544 | static inline int | 544 | static 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 | ||
556 | static inline int | 556 | static inline int |
557 | default_check_phys_apicid_present(int boot_cpu_physical_apicid) | 557 | default_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 |
562 | extern int default_cpu_present_to_apicid(int mps_cpu); | 562 | 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); |
564 | #endif | 564 | #endif |
565 | 565 | ||
566 | static inline physid_mask_t default_apicid_to_cpu_present(int phys_apicid) | 566 | static inline physid_mask_t default_apicid_to_cpu_present(int phys_apicid) |