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

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

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

  1 #ifndef _ALPHA_SOFTIRQ_H
  2 #define _ALPHA_SOFTIRQ_H
  3 
  4 #include <linux/stddef.h>
  5 #include <asm/atomic.h>
  6 #include <asm/hardirq.h>
  7 
  8 extern inline void cpu_bh_disable(int cpu)
  9 {
 10         local_bh_count(cpu)++;
 11         mb();
 12 }
 13 
 14 extern inline void cpu_bh_enable(int cpu)
 15 {
 16         mb();
 17         local_bh_count(cpu)--;
 18 }
 19 
 20 #define local_bh_enable()       cpu_bh_enable(smp_processor_id())
 21 #define local_bh_disable()      cpu_bh_disable(smp_processor_id())
 22 
 23 #define in_softirq() (local_bh_count(smp_processor_id()) != 0)
 24 
 25 #endif /* _ALPHA_SOFTIRQ_H */
 26 

~ [ 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.