summaryrefslogtreecommitdiffstats
path: root/kernel/irq/handle.c
diff options
context:
space:
mode:
authorYinghai Lu <yinghai@kernel.org>2008-12-22 20:24:09 -0800
committerIngo Molnar <mingo@elte.hu>2008-12-27 17:51:45 +0100
commitfa6beb37b0d9bc00f90f11154eeed9502d8b0a37 (patch)
tree7b8f240a031300d2e2f833848e957840efeb085b /kernel/irq/handle.c
parent13a0c3c269b223f60abfac8a9811d77111a8b4ba (diff)
downloadlinux-fa6beb37b0d9bc00f90f11154eeed9502d8b0a37.tar.bz2
sparseirq: set lock_class for legacy irq when sparse_irq is selected
Impact: add lockdep annotation to legacy IRQ descs Warnings resulting out of this were not seen in practice, but it's prudent to initialize the legacy descriptors to the lock class as well, symmetric to how we do it with other descriptors. Signed-off-by: Yinghai Lu <yinghai@kernel.org> Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'kernel/irq/handle.c')
-rw-r--r--kernel/irq/handle.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/kernel/irq/handle.c b/kernel/irq/handle.c
index 0bef3ecb7a0e..e1cf4e391cae 100644
--- a/kernel/irq/handle.c
+++ b/kernel/irq/handle.c
@@ -145,6 +145,7 @@ int __init early_irq_init(void)
for (i = 0; i < legacy_count; i++) {
desc[i].irq = i;
desc[i].kstat_irqs = kstat_irqs_legacy[i];
+ lockdep_set_class(&desc[i].lock, &irq_desc_lock_class);
irq_desc_ptrs[i] = desc + i;
}