Commit 6b9956c0 authored by Natalie Protasevich's avatar Natalie Protasevich Committed by Linus Torvalds

[PATCH] es7000 subarch update for target_cpus()

This is ES7000 sub arch update.  The tiny patch below fixes a bug that
results in boot problem on all ES7000 partitions with numbers higher than
0.  Currently, target_cpus() returns incorrect cpumask value since it
indexes bits by the logical APIC ID, not by CPU number.  The patch affects
only ES7000 sub arch.  It was tested extensively on the system with
multiple partitions.
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent 2823acfe
......@@ -16,7 +16,7 @@ static inline cpumask_t target_cpus(void)
#if defined CONFIG_ES7000_CLUSTERED_APIC
return CPU_MASK_ALL;
#else
return cpumask_of_cpu(bios_cpu_apicid[smp_processor_id()]);
return cpumask_of_cpu(smp_processor_id());
#endif
}
#define TARGET_CPUS (target_cpus())
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment