Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 1 | #ifdef __KERNEL__ |
| 2 | #ifndef __ASM_HARDIRQ_H |
| 3 | #define __ASM_HARDIRQ_H |
| 4 | |
Christoph Hellwig | ef187fd | 2009-09-21 17:04:04 -0700 | [diff] [blame] | 5 | #include <asm/irq.h> |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 6 | |
| 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 Hellwig | ef187fd | 2009-09-21 17:04:04 -0700 | [diff] [blame] | 22 | #include <asm-generic/hardirq.h> |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 23 | |
| 24 | #endif /* __ASM_HARDIRQ_H */ |
| 25 | #endif /* __KERNEL__ */ |