diff options
author | Yinghai Lu <yhlu.kernel@gmail.com> | 2008-08-19 20:49:47 -0700 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2008-10-16 16:52:05 +0200 |
commit | 85c0f90978bf50596dbd23854648020f1f9b5bfd (patch) | |
tree | f66c598bb37b925dd6c74e4ce1fb06345c742c01 /kernel/irq/handle.c | |
parent | 6da55c3e8da88e8a7cb6452160776ad6706798ad (diff) | |
download | kernel-crypto-85c0f90978bf50596dbd23854648020f1f9b5bfd.tar.gz kernel-crypto-85c0f90978bf50596dbd23854648020f1f9b5bfd.tar.xz kernel-crypto-85c0f90978bf50596dbd23854648020f1f9b5bfd.zip |
irq: introduce nr_irqs
at this point nr_irqs is equal NR_IRQS
convert a few easy users from NR_IRQS to dynamic nr_irqs.
v2: according to Eric, we need to take care of arch without generic_hardirqs
Signed-off-by: Yinghai Lu <yhlu.kernel@gmail.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'kernel/irq/handle.c')
-rw-r--r-- | kernel/irq/handle.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/kernel/irq/handle.c b/kernel/irq/handle.c index f4c8a03a9fb..e9d022cf593 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) * * Controller mappings for all interrupt sources: */ +int nr_irqs = NR_IRQS; struct irq_desc irq_desc[NR_IRQS] __cacheline_aligned_in_smp = { [0 ... NR_IRQS-1] = { .status = IRQ_DISABLED, @@ -265,7 +266,7 @@ void early_init_irq_lock_class(void) { int i; - for (i = 0; i < NR_IRQS; i++) + for (i = 0; i < nr_irqs; i++) lockdep_set_class(&irq_desc[i].lock, &irq_desc_lock_class); } |