aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/irq/handle.c
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/irq/handle.c')
-rw-r--r--kernel/irq/handle.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/kernel/irq/handle.c b/kernel/irq/handle.c
index f4c8a03a9fbb..e9d022cf593e 100644
--- a/kernel/irq/handle.c
+++ b/kernel/irq/handle.c
@@ -47,6 +47,7 @@ handle_bad_irq(unsigned int irq, struct irq_desc *desc)
47 * 47 *
48 * Controller mappings for all interrupt sources: 48 * Controller mappings for all interrupt sources:
49 */ 49 */
50int nr_irqs = NR_IRQS;
50struct irq_desc irq_desc[NR_IRQS] __cacheline_aligned_in_smp = { 51struct irq_desc irq_desc[NR_IRQS] __cacheline_aligned_in_smp = {
51 [0 ... NR_IRQS-1] = { 52 [0 ... NR_IRQS-1] = {
52 .status = IRQ_DISABLED, 53 .status = IRQ_DISABLED,
@@ -265,7 +266,7 @@ void early_init_irq_lock_class(void)
265{ 266{
266 int i; 267 int i;
267 268
268 for (i = 0; i < NR_IRQS; i++) 269 for (i = 0; i < nr_irqs; i++)
269 lockdep_set_class(&irq_desc[i].lock, &irq_desc_lock_class); 270 lockdep_set_class(&irq_desc[i].lock, &irq_desc_lock_class);
270} 271}
271 272