patch-2.3.50 linux/include/asm-sh/hardirq.h
Next file: linux/include/asm-sh/hdreg.h
Previous file: linux/include/asm-sh/elf.h
Back to the patch index
Back to the overall index
- Lines: 18
- Date:
Sun Mar 5 09:33:55 2000
- Orig file:
v2.3.49/linux/include/asm-sh/hardirq.h
- Orig date:
Fri Oct 22 13:21:54 1999
diff -u --recursive --new-file v2.3.49/linux/include/asm-sh/hardirq.h linux/include/asm-sh/hardirq.h
@@ -6,13 +6,15 @@
extern unsigned int local_irq_count[NR_CPUS];
#define in_interrupt() (local_irq_count[smp_processor_id()] != 0)
+#define in_irq() (local_irq_count[smp_processor_id()] != 0)
+
#ifndef __SMP__
#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 irq_enter(cpu, irq) (local_irq_count[cpu]++)
+#define irq_exit(cpu, irq) (local_irq_count[cpu]--)
#define synchronize_irq() barrier()
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)