source: GPL/include/asm/hardirq.h@ 1

Last change on this file since 1 was 1, checked in by vladest, 20 years ago

initial import

File size: 500 bytes
Line 
1#ifndef __ASM_HARDIRQ_H
2#define __ASM_HARDIRQ_H
3
4extern unsigned int local_irq_count[1];
5
6/*
7 * Are we in an interrupt context? Either doing bottom half
8 * or hardware interrupt processing?
9 */
10int in_interrupt();
11
12#define hardirq_trylock(cpu) (local_irq_count[cpu] == 0)
13#define hardirq_endlock(cpu) do { } while (0)
14
15#define hardirq_enter(cpu) (local_irq_count[cpu]++)
16#define hardirq_exit(cpu) (local_irq_count[cpu]--)
17
18#define synchronize_irq()
19
20#endif /* __ASM_HARDIRQ_H */
Note: See TracBrowser for help on using the repository browser.