Skip to contentSkip to conversation

x86,ipi - use cpu_has_apic macro helper

PATCH In review Cyrill Gorcunov 1 participant 2 messages Jul 5, 2009 – Jul 10, 2009 x86

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 x86,ipi - use cpu_has_apic macro helper

We already use a lot of cpu_has_ helpers.
Lets do here the same for consistency.

---
 arch/x86/kernel/apic/ipi.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/x86/kernel/apic/ipi.c +1 -1
Index: linux-2.6.git/arch/x86/kernel/apic/ipi.c
=====================================================================
@@ -150,7 +150,7 @@ int safe_smp_processor_id(void)
 {
 	int apicid, cpuid;
 
-	if (!boot_cpu_has(X86_FEATURE_APIC))
+	if (!cpu_has_apic)
 		return 0;
 
 	apicid = hard_smp_processor_id();
#1 lore raw

[tip:x86/cleanups] x86, ipi: Clean up safe_smp_processor_id() by using the cpu_has_apic() macro helper

Commit-ID:  a1b4f1a5b7f57be2593a9f1fca465a529c95fc07
Gitweb:     http://git.kernel.org/tip/a1b4f1a5b7f57be2593a9f1fca465a529c95fc07
Author:     Cyrill Gorcunov <[email protected]>
AuthorDate: Sun, 5 Jul 2009 20:01:54 +0400
Committer:  Ingo Molnar <[email protected]>
CommitDate: Fri, 10 Jul 2009 15:58:34 +0200

x86, ipi: Clean up safe_smp_processor_id() by using the cpu_has_apic() macro helper

We already use a lot of cpu_has_ helpers. Lets do here the same for consistency.

LKML-Reference: <20090705160154.GB4791@lenovo>

---
 arch/x86/kernel/apic/ipi.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
arch/x86/kernel/apic/ipi.c +1 -1
index dbf5445..e6b4f51 100644
@@ -150,7 +150,7 @@ int safe_smp_processor_id(void)
 {
 	int apicid, cpuid;
 
-	if (!boot_cpu_has(X86_FEATURE_APIC))
+	if (!cpu_has_apic)
 		return 0;
 
 	apicid = hard_smp_processor_id();