Re: [PATCH v2 3/6] x86/setup: init nr_irqs after having detected x2APIC support

2022-07-05 Thread Jan Beulich
On 30.06.2022 10:54, Roger Pau Monne wrote: > Logic in ioapic_init() that sets the number of available vectors for > external interrupts requires knowing the x2APIC Destination Mode. As > such move the call after x2APIC BSP setup. "requires" reads as if this was the case already, which I don't th

[PATCH v2 3/6] x86/setup: init nr_irqs after having detected x2APIC support

2022-06-30 Thread Roger Pau Monne
Logic in ioapic_init() that sets the number of available vectors for external interrupts requires knowing the x2APIC Destination Mode. As such move the call after x2APIC BSP setup. Do it as part of init_irq_data(), which is called just after x2APIC BSP init and also makes use of nr_irqs itself.