bhyve/vioapic: remove an extra pin masked check
vioapic_send_intr does already check whether the pin is masked before injecting the interrupt, there's no need to do it in vioapic_write also. No functional change intended. Reviewed by: grehan Differential revision: https://reviews.freebsd.org/D28236
This commit is contained in:
parent
0f34c80f37
commit
49429cf9be
@ -363,12 +363,10 @@ vioapic_write(struct vioapic *vioapic, int vcpuid, uint32_t addr, uint32_t data)
|
||||
|
||||
/*
|
||||
* Generate an interrupt if the following conditions are met:
|
||||
* - pin is not masked
|
||||
* - previous interrupt has been EOIed
|
||||
* - pin level is asserted
|
||||
*/
|
||||
if ((vioapic->rtbl[pin].reg & IOART_INTMASK) == IOART_INTMCLR &&
|
||||
(vioapic->rtbl[pin].reg & IOART_REM_IRR) == 0 &&
|
||||
if ((vioapic->rtbl[pin].reg & IOART_REM_IRR) == 0 &&
|
||||
(vioapic->rtbl[pin].acnt > 0)) {
|
||||
VIOAPIC_CTR2(vioapic, "ioapic pin%d: asserted at rtbl "
|
||||
"write, acnt %d", pin, vioapic->rtbl[pin].acnt);
|
||||
|
Loading…
x
Reference in New Issue
Block a user