early_init_irq_lock_class() is called way before anything touches the irq descriptors. In case of SPARSE_IRQ=y this is a NOP operation because the radix tree is empty at this point. For the SPARSE_IRQ=n case it's sufficient to set the lock class in early_init_irq().
Showing the changes to init (1 of 3 files). Show all
Unified · Split
| @@ -556,7 +556,6 @@ asmlinkage void __init start_kernel(void) · 555 unmodified lines | ||
| 556 | 556 | |
| 557 | 557 | local_irq_disable(); |
| 558 | 558 | early_boot_irqs_off(); |
| 559 | − early_init_irq_lock_class(); | |
| 560 | 559 | |
| 561 | 560 | /* |
| 562 | 561 | * Interrupts are still disabled. Do necessary setups, then |