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 | |
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')
-rw-r--r-- | arch/x86/include/asm/apic.h | 14 | ||||
-rw-r--r-- | arch/x86/kernel/apic/bigsmp_32.c | 2 | ||||
-rw-r--r-- | arch/x86/kernel/apic/numaq_32.c | 2 | ||||
-rw-r--r-- | arch/x86/kernel/apic/summit_32.c | 2 | ||||
-rw-r--r-- | arch/x86/kernel/setup.c | 4 |
5 files changed, 12 insertions, 12 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) |
diff --git a/arch/x86/kernel/apic/bigsmp_32.c b/arch/x86/kernel/apic/bigsmp_32.c index 676cdac385c0..77a06413b6b2 100644 --- a/arch/x86/kernel/apic/bigsmp_32.c +++ b/arch/x86/kernel/apic/bigsmp_32.c | |||
@@ -112,7 +112,7 @@ static physid_mask_t bigsmp_ioapic_phys_id_map(physid_mask_t phys_map) | |||
112 | return physids_promote(0xFFL); | 112 | return physids_promote(0xFFL); |
113 | } | 113 | } |
114 | 114 | ||
115 | static int bigsmp_check_phys_apicid_present(int boot_cpu_physical_apicid) | 115 | static int bigsmp_check_phys_apicid_present(int phys_apicid) |
116 | { | 116 | { |
117 | return 1; | 117 | return 1; |
118 | } | 118 | } |
diff --git a/arch/x86/kernel/apic/numaq_32.c b/arch/x86/kernel/apic/numaq_32.c index f1ebed6bd150..efa00e2b8505 100644 --- a/arch/x86/kernel/apic/numaq_32.c +++ b/arch/x86/kernel/apic/numaq_32.c | |||
@@ -413,7 +413,7 @@ static inline physid_mask_t numaq_apicid_to_cpu_present(int logical_apicid) | |||
413 | /* Where the IO area was mapped on multiquad, always 0 otherwise */ | 413 | /* Where the IO area was mapped on multiquad, always 0 otherwise */ |
414 | void *xquad_portio; | 414 | void *xquad_portio; |
415 | 415 | ||
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) |
417 | { | 417 | { |
418 | return 1; | 418 | return 1; |
419 | } | 419 | } |
diff --git a/arch/x86/kernel/apic/summit_32.c b/arch/x86/kernel/apic/summit_32.c index eafdfbd1ea95..645ecc4ff0be 100644 --- a/arch/x86/kernel/apic/summit_32.c +++ b/arch/x86/kernel/apic/summit_32.c | |||
@@ -272,7 +272,7 @@ static physid_mask_t summit_apicid_to_cpu_present(int apicid) | |||
272 | return physid_mask_of_physid(0); | 272 | return physid_mask_of_physid(0); |
273 | } | 273 | } |
274 | 274 | ||
275 | static int summit_check_phys_apicid_present(int boot_cpu_physical_apicid) | 275 | static int summit_check_phys_apicid_present(int physical_apicid) |
276 | { | 276 | { |
277 | return 1; | 277 | return 1; |
278 | } | 278 | } |
diff --git a/arch/x86/kernel/setup.c b/arch/x86/kernel/setup.c index 2d93026af7cd..fda22ec1a935 100644 --- a/arch/x86/kernel/setup.c +++ b/arch/x86/kernel/setup.c | |||
@@ -129,9 +129,9 @@ int default_cpu_present_to_apicid(int mps_cpu) | |||
129 | return __default_cpu_present_to_apicid(mps_cpu); | 129 | return __default_cpu_present_to_apicid(mps_cpu); |
130 | } | 130 | } |
131 | 131 | ||
132 | int default_check_phys_apicid_present(int boot_cpu_physical_apicid) | 132 | int default_check_phys_apicid_present(int phys_apicid) |
133 | { | 133 | { |
134 | return __default_check_phys_apicid_present(boot_cpu_physical_apicid); | 134 | return __default_check_phys_apicid_present(phys_apicid); |
135 | } | 135 | } |
136 | #endif | 136 | #endif |
137 | 137 | ||