mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-04-29 16:25:42 -04:00
x86: split safe_smp_processor_id
This implementation in x86_64 is clean and consistent, but we sacrifice it for the sake of being equal to i386 (since the other way around would be harder). Signed-off-by: Glauber Costa <gcosta@redhat.com> Signed-off-by: Ingo Molnar <mingo@elte.hu>
This commit is contained in:
committed by
Ingo Molnar
parent
b23dab08fa
commit
24e8ecffa8
@@ -27,12 +27,12 @@ static inline int num_booting_cpus(void)
|
||||
return cpus_weight(cpu_callout_map);
|
||||
}
|
||||
|
||||
#define safe_smp_processor_id() smp_processor_id()
|
||||
#else /* CONFIG_SMP */
|
||||
#define stack_smp_processor_id() 0
|
||||
|
||||
#define safe_smp_processor_id() 0
|
||||
#endif /* !CONFIG_SMP */
|
||||
|
||||
#define safe_smp_processor_id() smp_processor_id()
|
||||
|
||||
#endif
|
||||
|
||||
|
||||
Reference in New Issue
Block a user