patch-5.15.79-rt54.patch
[platform/kernel/linux-rpi.git] / include / linux / smp.h
index 510519e..7ac9fdb 100644 (file)
@@ -268,6 +268,9 @@ static inline int get_boot_cpu_id(void)
 #define get_cpu()              ({ preempt_disable(); __smp_processor_id(); })
 #define put_cpu()              preempt_enable()
 
+#define get_cpu_light()                ({ migrate_disable(); __smp_processor_id(); })
+#define put_cpu_light()                migrate_enable()
+
 /*
  * Callback to arch code if there's nosmp or maxcpus=0 on the
  * boot command line: