diff options
| -rw-r--r-- | arch/arm64/include/asm/smp.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/arch/arm64/include/asm/smp.h b/arch/arm64/include/asm/smp.h index a62db952ffcb..d050d720a1b4 100644 --- a/arch/arm64/include/asm/smp.h +++ b/arch/arm64/include/asm/smp.h | |||
| @@ -41,8 +41,10 @@ DECLARE_PER_CPU_READ_MOSTLY(int, cpu_number); | |||
| 41 | * We don't use this_cpu_read(cpu_number) as that has implicit writes to | 41 | * We don't use this_cpu_read(cpu_number) as that has implicit writes to |
| 42 | * preempt_count, and associated (compiler) barriers, that we'd like to avoid | 42 | * preempt_count, and associated (compiler) barriers, that we'd like to avoid |
| 43 | * the expense of. If we're preemptible, the value can be stale at use anyway. | 43 | * the expense of. If we're preemptible, the value can be stale at use anyway. |
| 44 | * And we can't use this_cpu_ptr() either, as that winds up recursing back | ||
| 45 | * here under CONFIG_DEBUG_PREEMPT=y. | ||
| 44 | */ | 46 | */ |
| 45 | #define raw_smp_processor_id() (*this_cpu_ptr(&cpu_number)) | 47 | #define raw_smp_processor_id() (*raw_cpu_ptr(&cpu_number)) |
| 46 | 48 | ||
| 47 | struct seq_file; | 49 | struct seq_file; |
| 48 | 50 | ||
