Extract shared code from timer

This commit is contained in:
YanWQ-monad
2024-09-24 21:01:34 +08:00
committed by Tate, Hongliang Tian
parent c4cb0f1aef
commit 839c2a6689
12 changed files with 47 additions and 38 deletions

View File

@ -9,11 +9,9 @@ use core::time::Duration;
use id_alloc::IdAlloc;
use ostd::{
arch::{
timer::{self, TIMER_FREQ},
trap::is_kernel_interrupted,
},
arch::{timer::TIMER_FREQ, trap::is_kernel_interrupted},
sync::Mutex,
timer,
};
use super::Process;