android_kernel_oneplus_msm8998/arch/x86/kernel/apic
Tejun Heo acb8bc09c6 x86: Add apic->x86_32_early_logical_apicid()
On x86_32, the mapping between cpu and logical apic ID differs
depending on the specific apic implementation in use.  The
mapping is initialized while bringing up CPUs; however, this
makes early inits ignore memory topology.

Add a x86_32 specific apic->x86_32_early_logical_apicid() which
is called early during boot to query the mapping.  The mapping
is later verified against the result of init_apic_ldr().  The
method is allowed to return BAD_APICID if it can't be determined
early.

noop variant which always returns BAD_APICID is implemented and
added to all x86_32 apic implementations.

Signed-off-by: Tejun Heo <tj@kernel.org>
Cc: eric.dumazet@gmail.com
Cc: yinghai@kernel.org
Cc: brgerst@gmail.com
Cc: gorcunov@gmail.com
Cc: penberg@kernel.org
Cc: shaohui.zheng@intel.com
Cc: rientjes@google.com
LKML-Reference: <1295789862-25482-8-git-send-email-tj@kernel.org>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
2011-01-28 14:54:06 +01:00
..
apic.c x86: Add apic->x86_32_early_logical_apicid() 2011-01-28 14:54:06 +01:00
apic_flat_64.c x86: Kill apic->cpu_to_logical_apicid() 2011-01-28 14:54:06 +01:00
apic_noop.c x86: Add apic->x86_32_early_logical_apicid() 2011-01-28 14:54:06 +01:00
bigsmp_32.c x86: Add apic->x86_32_early_logical_apicid() 2011-01-28 14:54:06 +01:00
es7000_32.c x86: Add apic->x86_32_early_logical_apicid() 2011-01-28 14:54:06 +01:00
hw_nmi.c x86, NMI: Remove DIE_NMI_IPI 2011-01-07 15:08:53 +01:00
io_apic.c Merge branch 'for-2.6.38' of git://git.kernel.org/pub/scm/linux/kernel/git/tj/percpu 2011-01-07 17:02:58 -08:00
ipi.c x86: Always use x86_cpu_to_logical_apicid for cpu -> logical apic id 2011-01-28 14:54:05 +01:00
Makefile x86, nmi_watchdog: Remove the old nmi_watchdog 2010-11-18 09:08:23 +01:00
numaq_32.c x86: Add apic->x86_32_early_logical_apicid() 2011-01-28 14:54:06 +01:00
probe_32.c x86: Add apic->x86_32_early_logical_apicid() 2011-01-28 14:54:06 +01:00
probe_64.c x86: Enable the intr-remap fault handling after local APIC setup 2010-12-13 16:53:32 -08:00
summit_32.c x86: Add apic->x86_32_early_logical_apicid() 2011-01-28 14:54:06 +01:00
x2apic_cluster.c x86: Kill apic->cpu_to_logical_apicid() 2011-01-28 14:54:06 +01:00
x2apic_phys.c x86: Kill apic->cpu_to_logical_apicid() 2011-01-28 14:54:06 +01:00
x2apic_uv_x.c x86: Kill apic->cpu_to_logical_apicid() 2011-01-28 14:54:06 +01:00