hc
2024-11-01 2f529f9b558ca1c1bd74be7437a84e4711743404
kernel/include/linux/stop_machine.h
....@@ -6,6 +6,7 @@
66 #include <linux/cpumask.h>
77 #include <linux/smp.h>
88 #include <linux/list.h>
9
+#include <linux/interrupt.h>
910
1011 /*
1112 * stop_cpu[s]() is simplistic per-cpu maximum priority cpu
....@@ -143,7 +144,9 @@
143144 unsigned long flags;
144145 int ret;
145146 local_irq_save(flags);
147
+ hard_irq_disable();
146148 ret = fn(data);
149
+ hard_irq_enable();
147150 local_irq_restore(flags);
148151 return ret;
149152 }