Rename aster-frame to ostd

This commit is contained in:
Jianfeng Jiang
2024-06-19 08:18:39 +00:00
committed by Tate, Hongliang Tian
parent fb59fa7a55
commit 59350a8578
300 changed files with 425 additions and 427 deletions

View File

@ -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;

View File

@ -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;

View File

@ -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;

View File

@ -11,7 +11,7 @@ use core::{
time::Duration,
};
use aster_frame::sync::SpinLock;
use ostd::sync::SpinLock;
use super::Clock;

View File

@ -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;

View File

@ -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,

View File

@ -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};