diff options
author | Ingo Molnar <mingo@elte.hu> | 2009-01-28 11:16:25 -0500 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2009-01-28 17:20:35 -0500 |
commit | 0939e4fd351c58d08d25650797749f18904461af (patch) | |
tree | 9789424637fb09af0e69cfb1be56caa65c21e0f1 | |
parent | 018e047f3a98bd8d9e9d78b19bc38415f0c34dd7 (diff) |
x86, smp: eliminate asm/mach-default/mach_wakecpu.h
Spread mach_wakecpu.h's definitions into apic.h and genapic.h
and remove mach_wakecpu.h.
Signed-off-by: Ingo Molnar <mingo@elte.hu>
-rw-r--r-- | arch/x86/include/asm/apic.h | 15 | ||||
-rw-r--r-- | arch/x86/include/asm/genapic.h | 7 | ||||
-rw-r--r-- | arch/x86/include/asm/mach-default/mach_wakecpu.h | 25 | ||||
-rw-r--r-- | arch/x86/kernel/smpboot.c | 1 | ||||
-rw-r--r-- | arch/x86/mach-generic/bigsmp.c | 1 | ||||
-rw-r--r-- | arch/x86/mach-generic/default.c | 1 | ||||
-rw-r--r-- | arch/x86/mach-generic/es7000.c | 1 | ||||
-rw-r--r-- | arch/x86/mach-generic/summit.c | 1 |
8 files changed, 22 insertions, 30 deletions
diff --git a/arch/x86/include/asm/apic.h b/arch/x86/include/asm/apic.h index ab1d51a8855e..e8f030440bc7 100644 --- a/arch/x86/include/asm/apic.h +++ b/arch/x86/include/asm/apic.h | |||
@@ -41,6 +41,21 @@ extern unsigned int apic_verbosity; | |||
41 | extern int local_apic_timer_c2_ok; | 41 | extern int local_apic_timer_c2_ok; |
42 | 42 | ||
43 | extern int disable_apic; | 43 | extern int disable_apic; |
44 | |||
45 | #ifdef CONFIG_SMP | ||
46 | extern void __inquire_remote_apic(int apicid); | ||
47 | #else /* CONFIG_SMP */ | ||
48 | static inline void __inquire_remote_apic(int apicid) | ||
49 | { | ||
50 | } | ||
51 | #endif /* CONFIG_SMP */ | ||
52 | |||
53 | static inline void default_inquire_remote_apic(int apicid) | ||
54 | { | ||
55 | if (apic_verbosity >= APIC_DEBUG) | ||
56 | __inquire_remote_apic(apicid); | ||
57 | } | ||
58 | |||
44 | /* | 59 | /* |
45 | * Basic functions accessing APICs. | 60 | * Basic functions accessing APICs. |
46 | */ | 61 | */ |
diff --git a/arch/x86/include/asm/genapic.h b/arch/x86/include/asm/genapic.h index e5f9c5696fb6..1772dad01b1d 100644 --- a/arch/x86/include/asm/genapic.h +++ b/arch/x86/include/asm/genapic.h | |||
@@ -113,4 +113,11 @@ extern int default_cpu_present_to_apicid(int mps_cpu); | |||
113 | extern int default_check_phys_apicid_present(int boot_cpu_physical_apicid); | 113 | extern int default_check_phys_apicid_present(int boot_cpu_physical_apicid); |
114 | #endif | 114 | #endif |
115 | 115 | ||
116 | static inline void default_wait_for_init_deassert(atomic_t *deassert) | ||
117 | { | ||
118 | while (!atomic_read(deassert)) | ||
119 | cpu_relax(); | ||
120 | return; | ||
121 | } | ||
122 | |||
116 | #endif /* _ASM_X86_GENAPIC_64_H */ | 123 | #endif /* _ASM_X86_GENAPIC_64_H */ |
diff --git a/arch/x86/include/asm/mach-default/mach_wakecpu.h b/arch/x86/include/asm/mach-default/mach_wakecpu.h deleted file mode 100644 index b1cde560e4c1..000000000000 --- a/arch/x86/include/asm/mach-default/mach_wakecpu.h +++ /dev/null | |||
@@ -1,25 +0,0 @@ | |||
1 | #ifndef _ASM_X86_MACH_DEFAULT_MACH_WAKECPU_H | ||
2 | #define _ASM_X86_MACH_DEFAULT_MACH_WAKECPU_H | ||
3 | |||
4 | static inline void default_wait_for_init_deassert(atomic_t *deassert) | ||
5 | { | ||
6 | while (!atomic_read(deassert)) | ||
7 | cpu_relax(); | ||
8 | return; | ||
9 | } | ||
10 | |||
11 | #ifdef CONFIG_SMP | ||
12 | extern void __inquire_remote_apic(int apicid); | ||
13 | #else /* CONFIG_SMP */ | ||
14 | static inline void __inquire_remote_apic(int apicid) | ||
15 | { | ||
16 | } | ||
17 | #endif /* CONFIG_SMP */ | ||
18 | |||
19 | static inline void default_inquire_remote_apic(int apicid) | ||
20 | { | ||
21 | if (apic_verbosity >= APIC_DEBUG) | ||
22 | __inquire_remote_apic(apicid); | ||
23 | } | ||
24 | |||
25 | #endif /* _ASM_X86_MACH_DEFAULT_MACH_WAKECPU_H */ | ||
diff --git a/arch/x86/kernel/smpboot.c b/arch/x86/kernel/smpboot.c index 170adc5b6cb3..1fdc1a7e7b56 100644 --- a/arch/x86/kernel/smpboot.c +++ b/arch/x86/kernel/smpboot.c | |||
@@ -66,7 +66,6 @@ | |||
66 | #include <linux/mc146818rtc.h> | 66 | #include <linux/mc146818rtc.h> |
67 | 67 | ||
68 | #include <mach_apic.h> | 68 | #include <mach_apic.h> |
69 | #include <mach_wakecpu.h> | ||
70 | #include <smpboot_hooks.h> | 69 | #include <smpboot_hooks.h> |
71 | 70 | ||
72 | #ifdef CONFIG_X86_32 | 71 | #ifdef CONFIG_X86_32 |
diff --git a/arch/x86/mach-generic/bigsmp.c b/arch/x86/mach-generic/bigsmp.c index 4d8b2d442bae..6fcccfb5918e 100644 --- a/arch/x86/mach-generic/bigsmp.c +++ b/arch/x86/mach-generic/bigsmp.c | |||
@@ -17,7 +17,6 @@ | |||
17 | #include <asm/bigsmp/apic.h> | 17 | #include <asm/bigsmp/apic.h> |
18 | #include <asm/bigsmp/ipi.h> | 18 | #include <asm/bigsmp/ipi.h> |
19 | #include <asm/mach-default/mach_mpparse.h> | 19 | #include <asm/mach-default/mach_mpparse.h> |
20 | #include <asm/mach-default/mach_wakecpu.h> | ||
21 | 20 | ||
22 | static int dmi_bigsmp; /* can be set by dmi scanners */ | 21 | static int dmi_bigsmp; /* can be set by dmi scanners */ |
23 | 22 | ||
diff --git a/arch/x86/mach-generic/default.c b/arch/x86/mach-generic/default.c index c12dd2300a59..e3c5114fd91d 100644 --- a/arch/x86/mach-generic/default.c +++ b/arch/x86/mach-generic/default.c | |||
@@ -16,7 +16,6 @@ | |||
16 | #include <asm/mach-default/mach_apic.h> | 16 | #include <asm/mach-default/mach_apic.h> |
17 | #include <asm/mach-default/mach_ipi.h> | 17 | #include <asm/mach-default/mach_ipi.h> |
18 | #include <asm/mach-default/mach_mpparse.h> | 18 | #include <asm/mach-default/mach_mpparse.h> |
19 | #include <asm/mach-default/mach_wakecpu.h> | ||
20 | 19 | ||
21 | static void default_vector_allocation_domain(int cpu, struct cpumask *retmask) | 20 | static void default_vector_allocation_domain(int cpu, struct cpumask *retmask) |
22 | { | 21 | { |
diff --git a/arch/x86/mach-generic/es7000.c b/arch/x86/mach-generic/es7000.c index 8b6113ec380c..bb11166b7c3c 100644 --- a/arch/x86/mach-generic/es7000.c +++ b/arch/x86/mach-generic/es7000.c | |||
@@ -14,7 +14,6 @@ | |||
14 | #include <linux/acpi.h> | 14 | #include <linux/acpi.h> |
15 | #include <linux/smp.h> | 15 | #include <linux/smp.h> |
16 | #include <asm/ipi.h> | 16 | #include <asm/ipi.h> |
17 | #include <asm/mach-default/mach_wakecpu.h> | ||
18 | 17 | ||
19 | #define APIC_DFR_VALUE_CLUSTER (APIC_DFR_CLUSTER) | 18 | #define APIC_DFR_VALUE_CLUSTER (APIC_DFR_CLUSTER) |
20 | #define INT_DELIVERY_MODE_CLUSTER (dest_LowestPrio) | 19 | #define INT_DELIVERY_MODE_CLUSTER (dest_LowestPrio) |
diff --git a/arch/x86/mach-generic/summit.c b/arch/x86/mach-generic/summit.c index d5db3045437c..673a64f8b463 100644 --- a/arch/x86/mach-generic/summit.c +++ b/arch/x86/mach-generic/summit.c | |||
@@ -16,7 +16,6 @@ | |||
16 | #include <asm/summit/apic.h> | 16 | #include <asm/summit/apic.h> |
17 | #include <asm/summit/ipi.h> | 17 | #include <asm/summit/ipi.h> |
18 | #include <asm/summit/mpparse.h> | 18 | #include <asm/summit/mpparse.h> |
19 | #include <asm/mach-default/mach_wakecpu.h> | ||
20 | 19 | ||
21 | static int probe_summit(void) | 20 | static int probe_summit(void) |
22 | { | 21 | { |