mirror of
https://github.com/asterinas/asterinas.git
synced 2025-06-24 09:53:24 +00:00
Extract shared code from timer
This commit is contained in:
committed by
Tate, Hongliang Tian
parent
c4cb0f1aef
commit
839c2a6689
@ -4,7 +4,7 @@ use alloc::sync::Arc;
|
||||
use core::time::Duration;
|
||||
|
||||
use log::trace;
|
||||
use ostd::arch::timer::Jiffies;
|
||||
use ostd::timer::Jiffies;
|
||||
|
||||
use super::{ext::IfaceEx, Iface, IFACES};
|
||||
use crate::{
|
||||
|
@ -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;
|
||||
|
@ -5,11 +5,11 @@ use core::time::Duration;
|
||||
|
||||
use aster_time::read_monotonic_time;
|
||||
use ostd::{
|
||||
arch::timer::Jiffies,
|
||||
cpu::{num_cpus, PinCurrentCpu},
|
||||
cpu_local,
|
||||
sync::SpinLock,
|
||||
task::disable_preempt,
|
||||
timer::Jiffies,
|
||||
};
|
||||
use paste::paste;
|
||||
use spin::Once;
|
||||
|
@ -2,7 +2,7 @@
|
||||
|
||||
use alloc::{boxed::Box, vec::Vec};
|
||||
|
||||
use ostd::{arch::timer, sync::RwLock, trap::SoftIrqLine};
|
||||
use ostd::{sync::RwLock, timer, trap::SoftIrqLine};
|
||||
|
||||
use crate::softirq_id::TIMER_SOFTIRQ_ID;
|
||||
|
||||
|
Reference in New Issue
Block a user