blob: 4c31c0ae215e87928098a9b60e2d978ae710f800 [file] [log] [blame]
Linus Torvalds1da177e2005-04-16 15:20:36 -07001#ifdef __KERNEL__
2#ifndef __ASM_HARDIRQ_H
3#define __ASM_HARDIRQ_H
4
Christoph Hellwigef187fd2009-09-21 17:04:04 -07005#include <asm/irq.h>
Linus Torvalds1da177e2005-04-16 15:20:36 -07006
7#if NR_IRQS > 256
8#define HARDIRQ_BITS 9
9#else
10#define HARDIRQ_BITS 8
11#endif
12
13/*
14 * The hardirq mask has to be large enough to have
15 * space for potentially all IRQ sources in the system
16 * nesting on a single CPU:
17 */
18#if (1 << HARDIRQ_BITS) < NR_IRQS
19# error HARDIRQ_BITS is too low!
20#endif
21
Christoph Hellwigef187fd2009-09-21 17:04:04 -070022#include <asm-generic/hardirq.h>
Linus Torvalds1da177e2005-04-16 15:20:36 -070023
24#endif /* __ASM_HARDIRQ_H */
25#endif /* __KERNEL__ */