mirror of
https://github.com/asterinas/asterinas.git
synced 2025-06-18 12:06:43 +00:00
Modify the userspace read/write usage location
This commit is contained in:
committed by
Tate, Hongliang Tian
parent
af908c29cf
commit
cd2b305fa8
@ -178,7 +178,7 @@ impl PreemptInfo {
|
||||
}
|
||||
}
|
||||
|
||||
fn incease_num_locks(&self) {
|
||||
fn increase_num_locks(&self) {
|
||||
self.num_locks.fetch_add(1, Relaxed);
|
||||
}
|
||||
|
||||
@ -205,7 +205,7 @@ impl !Send for DisablePreemptGuard {}
|
||||
|
||||
impl DisablePreemptGuard {
|
||||
fn new() -> Self {
|
||||
PREEMPT_COUNT.incease_num_locks();
|
||||
PREEMPT_COUNT.increase_num_locks();
|
||||
Self { private: () }
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user