mirror of
https://github.com/torvalds/linux.git
synced 2024-12-31 23:31:29 +00:00
x86: Implement x86_32_early_logical_apicid() for bigsmp_32
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-10-git-send-email-tj@kernel.org> Signed-off-by: Ingo Molnar <mingo@elte.hu>
This commit is contained in:
parent
3f6f679888
commit
12bf24a47c
@ -45,6 +45,12 @@ static unsigned long bigsmp_check_apicid_present(int bit)
|
|||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static int bigsmp_early_logical_apicid(int cpu)
|
||||||
|
{
|
||||||
|
/* on bigsmp, logical apicid is the same as physical */
|
||||||
|
return early_per_cpu(x86_cpu_to_apicid, cpu);
|
||||||
|
}
|
||||||
|
|
||||||
static inline unsigned long calculate_ldr(int cpu)
|
static inline unsigned long calculate_ldr(int cpu)
|
||||||
{
|
{
|
||||||
unsigned long val, id;
|
unsigned long val, id;
|
||||||
@ -252,5 +258,5 @@ struct apic apic_bigsmp = {
|
|||||||
.wait_icr_idle = native_apic_wait_icr_idle,
|
.wait_icr_idle = native_apic_wait_icr_idle,
|
||||||
.safe_wait_icr_idle = native_safe_apic_wait_icr_idle,
|
.safe_wait_icr_idle = native_safe_apic_wait_icr_idle,
|
||||||
|
|
||||||
.x86_32_early_logical_apicid = noop_x86_32_early_logical_apicid,
|
.x86_32_early_logical_apicid = bigsmp_early_logical_apicid,
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user