hc
2023-11-06 15ade055295d13f95d49e3d99b09f3bbfb4a43e7
kernel/include/linux/smp.h
....@@ -202,6 +202,9 @@
202202 #define get_cpu() ({ preempt_disable(); smp_processor_id(); })
203203 #define put_cpu() preempt_enable()
204204
205
+#define get_cpu_light() ({ migrate_disable(); smp_processor_id(); })
206
+#define put_cpu_light() migrate_enable()
207
+
205208 /*
206209 * Callback to arch code if there's nosmp or maxcpus=0 on the
207210 * boot command line: