Rev | Line | |
---|
[32] | 1 | #ifndef __ASM_HARDIRQ_H
|
---|
| 2 | #define __ASM_HARDIRQ_H
|
---|
| 3 |
|
---|
| 4 | extern 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 | */
|
---|
| 10 | int 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.