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

Linux Cross Reference
Linux/include/asm-arm/hardirq.h

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

  1 #ifndef __ASM_HARDIRQ_H
  2 #define __ASM_HARDIRQ_H
  3 
  4 #include <linux/config.h>
  5 #include <linux/threads.h>
  6 
  7 /* entry.S is sensitive to the offsets of these fields */
  8 typedef struct {
  9         unsigned int __softirq_active;
 10         unsigned int __softirq_mask;
 11         unsigned int __local_irq_count;
 12         unsigned int __local_bh_count;
 13         unsigned int __syscall_count;
 14 } ____cacheline_aligned irq_cpustat_t;
 15 
 16 #include <linux/irq_cpustat.h>  /* Standard mappings for irq_cpustat_t above */
 17 
 18 /*
 19  * Are we in an interrupt context? Either doing bottom half
 20  * or hardware interrupt processing?
 21  */
 22 #define in_interrupt() ({ const int __cpu = smp_processor_id(); \
 23         (local_irq_count(__cpu) + local_bh_count(__cpu) != 0); })
 24 
 25 #define in_irq() (local_irq_count(smp_processor_id()) != 0)
 26 
 27 #ifndef CONFIG_SMP
 28 
 29 #define hardirq_trylock(cpu)    (local_irq_count(cpu) == 0)
 30 #define hardirq_endlock(cpu)    do { } while (0)
 31 
 32 #define irq_enter(cpu,irq)      (local_irq_count(cpu)++)
 33 #define irq_exit(cpu,irq)       (local_irq_count(cpu)--)
 34 
 35 #define synchronize_irq()       do { } while (0)
 36 
 37 #else
 38 #error SMP not supported
 39 #endif /* CONFIG_SMP */
 40 
 41 #endif /* __ASM_HARDIRQ_H */
 42 

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