mirror of
https://chromium.googlesource.com/crosvm/crosvm
synced 2025-02-11 04:26:38 +00:00
devices: net: Avoid causing busy loop for interrupt resample
We must have read the resample event before calling `SignalableInterrupt::do_interrupt_resample`. BUG=b:179755448 TEST=run crosvm with net device Change-Id: Ic4bd74d3c89cc8af69401d2c1ebc095a474fba04 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/crosvm/+/2902057 Reviewed-by: Chirantan Ekbote <chirantan@chromium.org> Reviewed-by: Daniel Verkamp <dverkamp@chromium.org> Commit-Queue: Daniel Verkamp <dverkamp@chromium.org> Tested-by: Daniel Verkamp <dverkamp@chromium.org>
This commit is contained in:
parent
1b21dec7b1
commit
03f4c754d7
1 changed files with 2 additions and 0 deletions
|
@ -428,6 +428,8 @@ where
|
|||
}
|
||||
}
|
||||
Token::InterruptResample => {
|
||||
// We can unwrap safely because interrupt must have the event.
|
||||
let _ = self.interrupt.get_resample_evt().unwrap().read();
|
||||
self.interrupt.do_interrupt_resample();
|
||||
}
|
||||
Token::Kill => {
|
||||
|
|
Loading…
Reference in a new issue