Last change
on this file since 354 was 354, checked in by stevenhl, 17 years ago |
Import untested baseline cmedia sources, work products and binaries
Binaries and work products should be deleted from repository.
once new builds are verified to work.
|
File size:
581 bytes
|
Line | |
---|
1 | /* $Id: hardirq.h,v 1.1 2000/04/23 14:55:28 ktk Exp $ */
|
---|
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.