Skip to content

Commit

Permalink
x86: add safe_smp_processor_id for x86_64
Browse files Browse the repository at this point in the history
Preperatory patch to allow crash_32/64.c merging

Signed-off-by: Hiroshi Shimamoto <h-shimamoto@ct.jp.nec.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
  • Loading branch information
Hiroshi Shimamoto authored and Thomas Gleixner committed Oct 23, 2007
1 parent 9b7711f commit 92f98b1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions include/asm-x86/smp_64.h
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,8 @@ extern unsigned __cpuinitdata disabled_cpus;

#endif /* CONFIG_SMP */

#define safe_smp_processor_id() smp_processor_id()

static inline int hard_smp_processor_id(void)
{
/* we don't want to mark this access volatile - bad code generation */
Expand Down

0 comments on commit 92f98b1

Please sign in to comment.