hc
2024-02-20 102a0743326a03cd1a1202ceda21e175b7d3575c
kernel/arch/mips/kernel/sync-r4k.c
....@@ -90,6 +90,9 @@
9090 void synchronise_count_slave(int cpu)
9191 {
9292 int i;
93
+ unsigned long flags;
94
+
95
+ local_irq_save(flags);
9396
9497 /*
9598 * Not every cpu is online at the time this gets called,
....@@ -113,5 +116,7 @@
113116 }
114117 /* Arrange for an interrupt in a short while */
115118 write_c0_compare(read_c0_count() + COUNTON);
119
+
120
+ local_irq_restore(flags);
116121 }
117122 #undef NR_LOOPS