Update spin lock users to lock_irq_disabled()

This commit is contained in:
Chuandong Li
2023-07-02 18:31:53 +08:00
committed by Tate, Hongliang Tian
parent ba4121cd6a
commit 78de1af348
15 changed files with 69 additions and 59 deletions

View File

@ -45,7 +45,7 @@ impl Tty {
}
pub fn set_driver(&self, driver: Weak<TtyDriver>) {
*self.driver.lock() = driver;
*self.driver.lock_irq_disabled() = driver;
}
pub fn receive_char(&self, item: u8) {