1 /****************************************************************************
2 ****************************************************************************
4 *** This header was automatically generated from a Linux kernel header
5 *** of the same name, to make information necessary for userspace to
6 *** call into the kernel available to libc. It contains only constants,
7 *** structures, and macros generated from the original header, and thus,
8 *** contains no copyrightable information.
10 ****************************************************************************
11 ****************************************************************************/
12 #ifndef __irq_cpustat_h
13 #define __irq_cpustat_h
15 #ifndef __ARCH_IRQ_STAT
17 #define __IRQ_STAT(cpu, member) (irq_stat[cpu].member)
20 #define local_softirq_pending() __IRQ_STAT(smp_processor_id(), __softirq_pending)
22 #define nmi_count(cpu) __IRQ_STAT((cpu), __nmi_count)