x86: don't call read_apic_id if !cpu_has_apic
authorYinghai Lu <yinghai@kernel.org>
Fri, 15 May 2009 20:05:16 +0000 (13:05 -0700)
committerIngo Molnar <mingo@elte.hu>
Mon, 18 May 2009 06:43:25 +0000 (08:43 +0200)
commit2759c3287de27266e06f1f4e82cbd2d65f6a044c
tree78fa6a205d2e1c5f010f62e2ad50a181df1e5f47
parente5198075c67a22ec9a09565b1ce88d3d3f5ba855
x86: don't call read_apic_id if !cpu_has_apic

should not call that if apic is disabled.

[ Impact: fix crash on certain UP configs ]

Signed-off-by: Yinghai Lu <yinghai@kernel.org>
Cc: Cyrill Gorcunov <gorcunov@gmail.com>
LKML-Reference: <4A09CCBB.2000306@kernel.org>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
arch/x86/kernel/apic/apic_flat_64.c
arch/x86/kernel/cpu/amd.c
arch/x86/kernel/cpu/common.c
arch/x86/kernel/cpu/intel.c