home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / lxapi32.zip / Include / asm / hardirq.h < prev    next >
C/C++ Source or Header  |  2002-04-26  |  585b  |  23 lines

  1. /* $Id: hardirq.h,v 1.2 2002/04/26 23:09:19 smilcke 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 */
  23.