Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
awilliam
GitHub Repository: awilliam/linux-vfio
Path: blob/master/arch/m32r/include/asm/hardirq.h
10818 views
1
#ifdef __KERNEL__
2
#ifndef __ASM_HARDIRQ_H
3
#define __ASM_HARDIRQ_H
4
5
#include <asm/irq.h>
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
22
#include <asm-generic/hardirq.h>
23
24
#endif /* __ASM_HARDIRQ_H */
25
#endif /* __KERNEL__ */
26
27