hc
2023-11-20 2e7bd41e4e8ab3d1efdabd9e263a2f7fe79bff8c
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: