Merge branch 'xhcid_slower_polling' into 'master'

Sleep for 2ms on every poll loop in xhcid

See merge request redox-os/drivers!176
This commit is contained in:
Jeremy Soller
2024-06-16 11:21:32 +00:00
+1 -1
View File
@@ -105,7 +105,7 @@ impl IrqReactor {
}
// TODO: Configure the amount of time wait when no more work can be done (for IRQ-less polling).
fn pause(&self) {
std::thread::yield_now();
std::thread::sleep(std::time::Duration::from_millis(2));
}
fn run_polling(mut self) {
debug!("Running IRQ reactor in polling mode.");