Merge pull request #922 from phil-opp/post-12-fix

The `enable_interrupts_and_hlt` function was renamed to `enable_and_hlt`
This commit is contained in:
Philipp Oppermann
2021-02-02 11:59:19 +01:00
committed by GitHub

View File

@@ -62,11 +62,11 @@ impl Executor {
}
fn sleep_if_idle(&self) {
use x86_64::instructions::interrupts::{self, enable_interrupts_and_hlt};
use x86_64::instructions::interrupts::{self, enable_and_hlt};
interrupts::disable();
if self.task_queue.is_empty() {
enable_interrupts_and_hlt();
enable_and_hlt();
} else {
interrupts::enable();
}