Last change
on this file was 142, checked in by ktk, 25 years ago |
Import
|
-
Property svn:eol-style
set to
native
-
Property svn:keywords
set to
Author Date Id Revision
|
File size:
513 bytes
|
Rev | Line | |
---|
[142] | 1 | /* $Id: hardirq.h 142 2000-04-23 14:55:46Z ktk $ */
|
---|
| 2 |
|
---|
| 3 | #ifndef __ASM_HARDIRQ_H
|
---|
| 4 | #define __ASM_HARDIRQ_H
|
---|
| 5 |
|
---|
| 6 | extern unsigned int local_irq_count[1];
|
---|
| 7 |
|
---|
| 8 | /*
|
---|
| 9 | * Are we in an interrupt context? Either doing bottom half
|
---|
| 10 | * or hardware interrupt processing?
|
---|
| 11 | */
|
---|
| 12 | #define in_interrupt() asdfasdf
|
---|
| 13 |
|
---|
| 14 | #define hardirq_trylock(cpu) (local_irq_count[cpu] == 0)
|
---|
| 15 | #define hardirq_endlock(cpu) do { } while (0)
|
---|
| 16 |
|
---|
| 17 | #define hardirq_enter(cpu) (local_irq_count[cpu]++)
|
---|
| 18 | #define hardirq_exit(cpu) (local_irq_count[cpu]--)
|
---|
| 19 |
|
---|
| 20 | #define synchronize_irq() barrier()
|
---|
| 21 |
|
---|
| 22 | #endif /* __ASM_HARDIRQ_H */
|
---|
Note:
See
TracBrowser
for help on using the repository browser.