diff options
author | Yinghai Lu <yinghai@kernel.org> | 2008-12-22 23:24:09 -0500 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2008-12-27 11:51:45 -0500 |
commit | fa6beb37b0d9bc00f90f11154eeed9502d8b0a37 (patch) | |
tree | 7b8f240a031300d2e2f833848e957840efeb085b /kernel | |
parent | 13a0c3c269b223f60abfac8a9811d77111a8b4ba (diff) |
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')
-rw-r--r-- | kernel/irq/handle.c | 1 |
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) | |||
145 | for (i = 0; i < legacy_count; i++) { | 145 | for (i = 0; i < legacy_count; i++) { |
146 | desc[i].irq = i; | 146 | desc[i].irq = i; |
147 | desc[i].kstat_irqs = kstat_irqs_legacy[i]; | 147 | desc[i].kstat_irqs = kstat_irqs_legacy[i]; |
148 | lockdep_set_class(&desc[i].lock, &irq_desc_lock_class); | ||
148 | 149 | ||
149 | irq_desc_ptrs[i] = desc + i; | 150 | irq_desc_ptrs[i] = desc + i; |
150 | } | 151 | } |