mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-01-17 18:36:00 +00:00
x86/irq: Use existing helper for pending vector check
lapic_vector_set_in_irr() is already available, use it for checking pending vectors at the local APIC. No functional change. Signed-off-by: Jacob Pan <jacob.jun.pan@linux.intel.com> Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Reviewed-by: Imran Khan <imran.f.khan@oracle.com> Link: https://lore.kernel.org/r/20240506175612.1141095-1-jacob.jun.pan@linux.intel.com
This commit is contained in:
parent
ed1e48ea43
commit
6ecc2e7932
@ -503,13 +503,7 @@ static inline bool lapic_vector_set_in_irr(unsigned int vector)
|
||||
|
||||
static inline bool is_vector_pending(unsigned int vector)
|
||||
{
|
||||
unsigned int irr;
|
||||
|
||||
irr = apic_read(APIC_IRR + (vector / 32 * 0x10));
|
||||
if (irr & (1 << (vector % 32)))
|
||||
return true;
|
||||
|
||||
return pi_pending_this_cpu(vector);
|
||||
return lapic_vector_set_in_irr(vector) || pi_pending_this_cpu(vector);
|
||||
}
|
||||
|
||||
/*
|
||||
|
Loading…
x
Reference in New Issue
Block a user