blob: 54207e325c8b3be5e6aad34db2e2ddf753c9d2c6 [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/cache.h>
16#include <linux/threads.h>
17#include <asm/irq.h>
Ben Cheng4b29af02012-03-07 16:14:53 -080018
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080019typedef struct {
20 unsigned int __softirq_pending;
21 unsigned int local_timer_irqs;
22} ____cacheline_aligned irq_cpustat_t;
Ben Cheng4b29af02012-03-07 16:14:53 -080023
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080024#include <linux/irq_cpustat.h>
Ben Cheng4b29af02012-03-07 16:14:53 -080025
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080026#if NR_IRQS > 256
27#define HARDIRQ_BITS 9
28#else
29#define HARDIRQ_BITS 8
30#endif
Ben Cheng4b29af02012-03-07 16:14:53 -080031
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080032#if 1 << HARDIRQ_BITS < NR_IRQS
33#error HARDIRQ_BITS is too low!
34#endif
Ben Cheng4b29af02012-03-07 16:14:53 -080035
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080036#define __ARCH_IRQ_EXIT_IRQS_DISABLED 1
Ben Cheng4b29af02012-03-07 16:14:53 -080037
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080038#endif