|
@@ -41,8 +41,10 @@ DECLARE_PER_CPU_READ_MOSTLY(int, cpu_number);
|
|
* We don't use this_cpu_read(cpu_number) as that has implicit writes to
|
|
* We don't use this_cpu_read(cpu_number) as that has implicit writes to
|
|
* preempt_count, and associated (compiler) barriers, that we'd like to avoid
|
|
* preempt_count, and associated (compiler) barriers, that we'd like to avoid
|
|
* the expense of. If we're preemptible, the value can be stale at use anyway.
|
|
* the expense of. If we're preemptible, the value can be stale at use anyway.
|
|
|
|
+ * And we can't use this_cpu_ptr() either, as that winds up recursing back
|
|
|
|
+ * here under CONFIG_DEBUG_PREEMPT=y.
|
|
*/
|
|
*/
|
|
-#define raw_smp_processor_id() (*this_cpu_ptr(&cpu_number))
|
|
|
|
|
|
+#define raw_smp_processor_id() (*raw_cpu_ptr(&cpu_number))
|
|
|
|
|
|
struct seq_file;
|
|
struct seq_file;
|
|
|
|
|