patch-2.1.120 linux/include/asm-m68k/hardirq.h
Next file: linux/include/asm-m68k/io.h
Previous file: linux/include/asm-m68k/checksum.h
Back to the patch index
Back to the overall index
- Lines: 16
- Date:
Wed Sep 2 09:39:18 1998
- Orig file:
v2.1.119/linux/include/asm-m68k/hardirq.h
- Orig date:
Tue Jun 23 10:01:28 1998
diff -u --recursive --new-file v2.1.119/linux/include/asm-m68k/hardirq.h linux/include/asm-m68k/hardirq.h
@@ -7,12 +7,12 @@
#define in_interrupt() (local_irq_count[smp_processor_id()] + local_bh_count[smp_processor_id()] != 0)
-#define hardirq_trylock(cpu) (++local_irq_count[cpu], (cpu) == 0)
-#define hardirq_endlock(cpu) (--local_irq_count[cpu])
+#define hardirq_trylock(cpu) (local_irq_count[cpu] == 0)
+#define hardirq_endlock(cpu) do { } while (0)
#define hardirq_enter(cpu) (local_irq_count[cpu]++)
#define hardirq_exit(cpu) (local_irq_count[cpu]--)
-#define synchronize_irq() do { } while (0)
+#define synchronize_irq() barrier()
#endif
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov