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

@ -6,10 +6,9 @@
use alloc::sync::Arc;
use core::sync::atomic::{AtomicU64, Ordering};
use ostd::arch::{
read_tsc,
timer::{self, TIMER_FREQ},
tsc_freq,
use ostd::{
arch::{read_tsc, timer::TIMER_FREQ, tsc_freq},
timer,
};
use spin::Once;