Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

x86/apic: Move apic_update_irq_cfg() call to apic_update_vector()

All callers of apic_update_vector() also call apic_update_irq_cfg() after it.
So, move the apic_update_irq_cfg() call to apic_update_vector().

No functional change intended.

Signed-off-by: Neeraj Upadhyay <Neeraj.Upadhyay@amd.com>
Signed-off-by: Borislav Petkov (AMD) <bp@alien8.de>
Link: https://lore.kernel.org/20250709033242.267892-18-Neeraj.Upadhyay@amd.com

authored by

Neeraj Upadhyay and committed by
Borislav Petkov (AMD)
7f2b41ac 0877ad1c

+2 -2
+2 -2
arch/x86/kernel/apic/vector.c
··· 183 183 apicd->cpu = newcpu; 184 184 BUG_ON(!IS_ERR_OR_NULL(per_cpu(vector_irq, newcpu)[newvec])); 185 185 per_cpu(vector_irq, newcpu)[newvec] = desc; 186 + apic_update_irq_cfg(irqd, newvec, newcpu); 186 187 } 187 188 188 189 static void vector_assign_managed_shutdown(struct irq_data *irqd) ··· 262 261 if (vector < 0) 263 262 return vector; 264 263 apic_update_vector(irqd, vector, cpu); 265 - apic_update_irq_cfg(irqd, vector, cpu); 266 264 267 265 return 0; 268 266 } ··· 338 338 if (vector < 0) 339 339 return vector; 340 340 apic_update_vector(irqd, vector, cpu); 341 - apic_update_irq_cfg(irqd, vector, cpu); 341 + 342 342 return 0; 343 343 } 344 344