[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <tip-a1b4f1a5b7f57be2593a9f1fca465a529c95fc07@git.kernel.org>
Date: Fri, 10 Jul 2009 14:00:40 GMT
From: tip-bot for Cyrill Gorcunov <gorcunov@...nvz.org>
To: linux-tip-commits@...r.kernel.org
Cc: linux-kernel@...r.kernel.org, hpa@...or.com, mingo@...hat.com,
yinghai@...nel.org, gorcunov@...nvz.org, tglx@...utronix.de,
mingo@...e.hu
Subject: [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 <gorcunov@...nvz.org>
AuthorDate: Sun, 5 Jul 2009 20:01:54 +0400
Committer: Ingo Molnar <mingo@...e.hu>
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.
Signed-off-by: Cyrill Gorcunov <gorcunov@...nvz.org>
Cc: Yinghai Lu <yinghai@...nel.org>
LKML-Reference: <20090705160154.GB4791@...ovo>
Signed-off-by: Ingo Molnar <mingo@...e.hu>
---
arch/x86/kernel/apic/ipi.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/arch/x86/kernel/apic/ipi.c b/arch/x86/kernel/apic/ipi.c
index dbf5445..e6b4f51 100644
--- a/arch/x86/kernel/apic/ipi.c
+++ b/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();
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists