kernel/include/linux/smp.h
.. .. @@ -202,6 +202,9 @@ 202 202 #define get_cpu() ({ preempt_disable(); smp_processor_id(); }) 203 203 #define put_cpu() preempt_enable() 204 204 205 +#define get_cpu_light() ({ migrate_disable(); smp_processor_id(); })206 +#define put_cpu_light() migrate_enable()207 +205 208 /* 206 209 * Callback to arch code if there's nosmp or maxcpus=0 on the 207 210 * boot command line: