pub struct KernelTimer {
core_local_timer: [UnsafeCell<ArchTimer>; 2],
pub interval: u64,
}Fields§
§core_local_timer: [UnsafeCell<ArchTimer>; 2]§interval: u64Implementations§
Source§impl KernelTimer
impl KernelTimer
fn new() -> Self
Sourcepub fn init(&self, cpu_id: usize)
pub fn init(&self, cpu_id: usize)
Initialize the timer for a specific CPU. This must be called by each CPU individually during its initialization.
§Arguments
cpu_id- The ID of the CPU whose timer should be initialized