Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a1b4f1a5 authored by Cyrill Gorcunov's avatar Cyrill Gorcunov Committed by Ingo Molnar
Browse files

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: default avatarCyrill Gorcunov <gorcunov@openvz.org>
Cc: Yinghai Lu <yinghai@kernel.org>
LKML-Reference: <20090705160154.GB4791@lenovo>
Signed-off-by: default avatarIngo Molnar <mingo@elte.hu>
parent 9ff80942
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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();