Skip to content

Commit

Permalink
x86: split safe_smp_processor_id
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Glauber Costa authored and Ingo Molnar committed Apr 17, 2008
1 parent b23dab0 commit 24e8ecf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions include/asm-x86/smp_64.h
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 24e8ecf

Please sign in to comment.