mirror of
https://github.com/asterinas/asterinas.git
synced 2025-06-29 16:13:27 +00:00
Rename aster-frame to ostd
This commit is contained in:
committed by
Tate, Hongliang Tian
parent
fb59fa7a55
commit
59350a8578
@ -3,7 +3,7 @@
|
||||
use alloc::sync::Arc;
|
||||
use core::time::Duration;
|
||||
|
||||
use aster_frame::sync::SpinLock;
|
||||
use ostd::sync::SpinLock;
|
||||
|
||||
use crate::time::Clock;
|
||||
|
||||
|
@ -3,8 +3,8 @@
|
||||
use alloc::sync::Arc;
|
||||
use core::time::Duration;
|
||||
|
||||
use aster_frame::{arch::timer::Jiffies, cpu_local, sync::SpinLock, CpuLocal};
|
||||
use aster_time::read_monotonic_time;
|
||||
use ostd::{arch::timer::Jiffies, cpu_local, sync::SpinLock, CpuLocal};
|
||||
use paste::paste;
|
||||
use spin::Once;
|
||||
|
||||
|
@ -2,8 +2,8 @@
|
||||
|
||||
use core::time::Duration;
|
||||
|
||||
use aster_frame::arch::timer::TIMER_FREQ;
|
||||
use aster_time::NANOS_PER_SECOND;
|
||||
use ostd::arch::timer::TIMER_FREQ;
|
||||
|
||||
pub mod timer;
|
||||
|
||||
|
@ -11,7 +11,7 @@ use core::{
|
||||
time::Duration,
|
||||
};
|
||||
|
||||
use aster_frame::sync::SpinLock;
|
||||
use ostd::sync::SpinLock;
|
||||
|
||||
use super::Clock;
|
||||
|
||||
|
@ -2,7 +2,7 @@
|
||||
|
||||
use alloc::{boxed::Box, vec::Vec};
|
||||
|
||||
use aster_frame::{arch::timer, sync::RwLock, trap::SoftIrqLine};
|
||||
use ostd::{arch::timer, sync::RwLock, trap::SoftIrqLine};
|
||||
|
||||
use crate::softirq_id::TIMER_SOFTIRQ_ID;
|
||||
|
||||
|
@ -81,7 +81,7 @@ impl SystemTime {
|
||||
}
|
||||
}
|
||||
|
||||
/// convert aster_frame::time::Time to System time
|
||||
/// convert ostd::time::Time to System time
|
||||
fn convert_system_time(system_time: aster_time::SystemTime) -> Result<SystemTime> {
|
||||
let month = match Month::try_from(system_time.month) {
|
||||
Ok(month) => month,
|
||||
|
@ -2,7 +2,7 @@
|
||||
|
||||
use core::time::Duration;
|
||||
|
||||
use aster_frame::sync::{WaitQueue, Waiter};
|
||||
use ostd::sync::{WaitQueue, Waiter};
|
||||
|
||||
use super::{clocks::JIFFIES_TIMER_MANAGER, timer::Timeout};
|
||||
|
||||
|
Reference in New Issue
Block a user