Skip to content

Commit

Permalink
x86, ipi: Clean up safe_smp_processor_id() by using the cpu_has_apic(…
Browse files Browse the repository at this point in the history
…) macro helper

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

Signed-off-by: Cyrill Gorcunov <gorcunov@openvz.org>
Cc: Yinghai Lu <yinghai@kernel.org>
LKML-Reference: <20090705160154.GB4791@lenovo>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
  • Loading branch information
Cyrill Gorcunov authored and Ingo Molnar committed Jul 10, 2009
1 parent 9ff8094 commit a1b4f1a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/x86/kernel/apic/ipi.c
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit a1b4f1a

Please sign in to comment.