Lines Matching defs:CpuRunQueue
71 pub fn cpu_rq(cpu: usize) -> Arc<CpuRunQueue> { in cpu_rq()
99 fn enqueue(rq: &mut CpuRunQueue, pcb: Arc<ProcessControlBlock>, flags: EnqueueFlag); in enqueue()
102 fn dequeue(rq: &mut CpuRunQueue, pcb: Arc<ProcessControlBlock>, flags: DequeueFlag); in dequeue()
105 fn yield_task(rq: &mut CpuRunQueue); in yield_task()
109 rq: &mut CpuRunQueue, in check_preempt_currnet()
120 rq: &mut CpuRunQueue, in pick_next_task()
125 fn tick(rq: &mut CpuRunQueue, pcb: Arc<ProcessControlBlock>, queued: bool); in tick()
130 fn put_prev_task(rq: &mut CpuRunQueue, prev: Arc<ProcessControlBlock>); in put_prev_task()
288 pub struct CpuRunQueue { struct
289 lock: SpinLock<()>,
290 lock_on_who: AtomicUsize,
292 cpu: usize,
293 clock_task: u64,
294 clock: u64,
295 prev_irq_time: u64,
296 clock_updata_flags: ClockUpdataFlag,
299 overload: bool,
301 next_balance: u64,
304 nr_running: usize,
307 nr_uninterruptible: usize,
331 impl CpuRunQueue { argument