aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/include/asm
diff options
context:
space:
mode:
Diffstat (limited to 'arch/x86/include/asm')
-rw-r--r--arch/x86/include/asm/apic.h15
-rw-r--r--arch/x86/include/asm/genapic.h7
-rw-r--r--arch/x86/include/asm/mach-default/mach_wakecpu.h25
3 files changed, 22 insertions, 25 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;
41extern int local_apic_timer_c2_ok; 41extern int local_apic_timer_c2_ok;
42 42
43extern int disable_apic; 43extern int disable_apic;
44
45#ifdef CONFIG_SMP
46extern void __inquire_remote_apic(int apicid);
47#else /* CONFIG_SMP */
48static inline void __inquire_remote_apic(int apicid)
49{
50}
51#endif /* CONFIG_SMP */
52
53static 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);
113extern int default_check_phys_apicid_present(int boot_cpu_physical_apicid); 113extern int default_check_phys_apicid_present(int boot_cpu_physical_apicid);
114#endif 114#endif
115 115
116static 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
4static 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
12extern void __inquire_remote_apic(int apicid);
13#else /* CONFIG_SMP */
14static inline void __inquire_remote_apic(int apicid)
15{
16}
17#endif /* CONFIG_SMP */
18
19static 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 */