mirror of
https://github.com/torvalds/linux.git
synced 2026-05-27 00:22:00 +02:00
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
This commit is contained in:
parent
0877ad1c4e
commit
7f2b41ac3f
|
|
@ -183,6 +183,7 @@ static void apic_update_vector(struct irq_data *irqd, unsigned int newvec,
|
|||
apicd->cpu = newcpu;
|
||||
BUG_ON(!IS_ERR_OR_NULL(per_cpu(vector_irq, newcpu)[newvec]));
|
||||
per_cpu(vector_irq, newcpu)[newvec] = desc;
|
||||
apic_update_irq_cfg(irqd, newvec, newcpu);
|
||||
}
|
||||
|
||||
static void vector_assign_managed_shutdown(struct irq_data *irqd)
|
||||
|
|
@ -261,7 +262,6 @@ assign_vector_locked(struct irq_data *irqd, const struct cpumask *dest)
|
|||
if (vector < 0)
|
||||
return vector;
|
||||
apic_update_vector(irqd, vector, cpu);
|
||||
apic_update_irq_cfg(irqd, vector, cpu);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
|
@ -338,7 +338,7 @@ assign_managed_vector(struct irq_data *irqd, const struct cpumask *dest)
|
|||
if (vector < 0)
|
||||
return vector;
|
||||
apic_update_vector(irqd, vector, cpu);
|
||||
apic_update_irq_cfg(irqd, vector, cpu);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user