blob: b682f662ecfe4aad48afbf8d8ab1ccdd866bd103 [file] [log] [blame]
The Android Open Source Project1dc9e472009-03-03 19:28:35 -08001/****************************************************************************
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 Cheng4b29af02012-03-07 16:14:53 -080014
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080015#include <linux/threads.h>
16#include <linux/irq.h>
Ben Cheng4b29af02012-03-07 16:14:53 -080017
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080018typedef 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 Cheng4b29af02012-03-07 16:14:53 -080030
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080031#define __ARCH_IRQ_STAT
32#define __IRQ_STAT(cpu, member) (per_cpu(irq_stat, cpu).member)
Ben Cheng4b29af02012-03-07 16:14:53 -080033
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080034#include <linux/irq_cpustat.h>
Ben Cheng4b29af02012-03-07 16:14:53 -080035
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080036#endif