]> Pileus Git - ~andy/linux/commitdiff
sparseirq: set lock_class for legacy irq when sparse_irq is selected
authorYinghai Lu <yinghai@kernel.org>
Tue, 23 Dec 2008 04:24:09 +0000 (20:24 -0800)
committerIngo Molnar <mingo@elte.hu>
Sat, 27 Dec 2008 16:51:45 +0000 (17:51 +0100)
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>
kernel/irq/handle.c

index 0bef3ecb7a0e464e1c1966b9db6eff68cd34f197..e1cf4e391caee0a8fbeb4bc259a16cb203abc876 100644 (file)
@@ -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;
        }