Skip to content

Commit

Permalink
sparseirq: set lock_class for legacy irq when sparse_irq is selected
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Yinghai Lu authored and Ingo Molnar committed Dec 27, 2008
1 parent 13a0c3c commit fa6beb3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions kernel/irq/handle.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit fa6beb3

Please sign in to comment.