The Android Open Source Project | 1dc9e47 | 2009-03-03 19:28:35 -0800 | [diff] [blame] | 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 __ASM_HARDIRQ_H |
| 13 | #define __ASM_HARDIRQ_H |
Ben Cheng | 4b29af0 | 2012-03-07 16:14:53 -0800 | [diff] [blame] | 14 | |
The Android Open Source Project | 1dc9e47 | 2009-03-03 19:28:35 -0800 | [diff] [blame] | 15 | #include <linux/threads.h> |
| 16 | #include <linux/irq.h> |
Ben Cheng | 4b29af0 | 2012-03-07 16:14:53 -0800 | [diff] [blame] | 17 | |
The Android Open Source Project | 1dc9e47 | 2009-03-03 19:28:35 -0800 | [diff] [blame] | 18 | typedef struct { |
| 19 | unsigned int __softirq_pending; |
| 20 | unsigned long idle_timestamp; |
| 21 | unsigned int __nmi_count; |
| 22 | unsigned int apic_timer_irqs; |
| 23 | unsigned int irq0_irqs; |
| 24 | unsigned int irq_resched_count; |
| 25 | unsigned int irq_call_count; |
| 26 | unsigned int irq_tlb_count; |
| 27 | unsigned int irq_thermal_count; |
| 28 | unsigned int irq_spurious_count; |
| 29 | } ____cacheline_aligned irq_cpustat_t; |
Ben Cheng | 4b29af0 | 2012-03-07 16:14:53 -0800 | [diff] [blame] | 30 | |
The Android Open Source Project | 1dc9e47 | 2009-03-03 19:28:35 -0800 | [diff] [blame] | 31 | #define __ARCH_IRQ_STAT |
| 32 | #define __IRQ_STAT(cpu, member) (per_cpu(irq_stat, cpu).member) |
Ben Cheng | 4b29af0 | 2012-03-07 16:14:53 -0800 | [diff] [blame] | 33 | |
The Android Open Source Project | 1dc9e47 | 2009-03-03 19:28:35 -0800 | [diff] [blame] | 34 | #include <linux/irq_cpustat.h> |
Ben Cheng | 4b29af0 | 2012-03-07 16:14:53 -0800 | [diff] [blame] | 35 | |
The Android Open Source Project | 1dc9e47 | 2009-03-03 19:28:35 -0800 | [diff] [blame] | 36 | #endif |