OSDN Git Service

Check in released NDK version r4.
[android-x86/prebuilt.git] / ndk / android-ndk-r4 / darwin / platforms / android-5 / arch-x86 / usr / include / linux / irq_cpustat.h
1 /****************************************************************************
2  ****************************************************************************
3  ***
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.
9  ***
10  ****************************************************************************
11  ****************************************************************************/
12 #ifndef __irq_cpustat_h
13 #define __irq_cpustat_h
14
15 #ifndef __ARCH_IRQ_STAT
16
17 #define __IRQ_STAT(cpu, member) (irq_stat[cpu].member)
18 #endif
19
20 #define local_softirq_pending()   __IRQ_STAT(smp_processor_id(), __softirq_pending)
21
22 #define nmi_count(cpu) __IRQ_STAT((cpu), __nmi_count)  
23
24 #endif