Skip to contentSkip to conversation

x86: fix APIC_DEBUG with inquire_remote_apic

PATCH New Yinghai Lu 1 participant 1 message Oct 10, 2008

lore
Share & tools
lore

Yinghai Lu

author
#0 lore raw

PATCH 1/1 x86: fix APIC_DEBUG with inquire_remote_apic

APIC_DEBUG is always 2.
need to update inquire_remote_apic to check apic_verbosity with it instead.

---
 include/asm-x86/es7000/wakecpu.h            |    9 ++++-----
 include/asm-x86/mach-default/mach_wakecpu.h |    9 ++++-----
 2 files changed, 8 insertions(+), 10 deletions(-)
include/asm-x86/es7000/wakecpu.h +4 -5
Index: linux-2.6/include/asm-x86/es7000/wakecpu.h
===================================================================
@@ -50,10 +50,9 @@ static inline void restore_NMI_vector(un
 {
 }
 
-#if APIC_DEBUG
- #define inquire_remote_apic(apicid) __inquire_remote_apic(apicid)
-#else
- #define inquire_remote_apic(apicid) {}
-#endif
+#define inquire_remote_apic(apicid) do {		\
+		if (apic_verbosity >= APIC_DEBUG)	\
+			__inquire_remote_apic(apicid);	\
+	} while (0)
 
 #endif /* __ASM_MACH_WAKECPU_H */
include/asm-x86/mach-default/mach_wakecpu.h +4 -5
Index: linux-2.6/include/asm-x86/mach-default/mach_wakecpu.h
===================================================================
@@ -33,10 +33,9 @@ static inline void restore_NMI_vector(un
 {
 }
 
-#if APIC_DEBUG
- #define inquire_remote_apic(apicid) __inquire_remote_apic(apicid)
-#else
- #define inquire_remote_apic(apicid) {}
-#endif
+#define inquire_remote_apic(apicid) do {		\
+		if (apic_verbosity >= APIC_DEBUG)	\
+			__inquire_remote_apic(apicid);	\
+	} while (0)
 
 #endif /* ASM_X86__MACH_DEFAULT__MACH_WAKECPU_H */