~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~ [ freetext search ] ~ [ file search ] ~

Linux Cross Reference
Linux/include/asm-ppc/softirq.h

Version: ~ [ 2.4.0 ] ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

  1 #ifdef __KERNEL__
  2 #ifndef __ASM_SOFTIRQ_H
  3 #define __ASM_SOFTIRQ_H
  4 
  5 #include <asm/atomic.h>
  6 #include <asm/hardirq.h>
  7 
  8 #define local_bh_disable()      do { local_bh_count(smp_processor_id())++; barrier(); } while (0)
  9 #define local_bh_enable()       do { barrier(); local_bh_count(smp_processor_id())--; } while (0)
 10 
 11 #define in_softirq() (local_bh_count(smp_processor_id()) != 0)
 12 
 13 #endif  /* __ASM_SOFTIRQ_H */
 14 #endif /* __KERNEL__ */
 15 

~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~ [ freetext search ] ~ [ file search ] ~

This page was automatically generated by the LXR engine.
Visit the LXR main site for more information.