Lines Matching refs:CpuRunQueue
50 static CPU_RUNQUEUE: Lazy<PerCpuVar<Arc<CpuRunQueue>>> = PerCpuVar::define_lazy();
71 pub fn cpu_rq(cpu: usize) -> Arc<CpuRunQueue> { in cpu_rq() argument
99 fn enqueue(rq: &mut CpuRunQueue, pcb: Arc<ProcessControlBlock>, flags: EnqueueFlag); in enqueue() argument
102 fn dequeue(rq: &mut CpuRunQueue, pcb: Arc<ProcessControlBlock>, flags: DequeueFlag); in dequeue() argument
105 fn yield_task(rq: &mut CpuRunQueue); in yield_task() argument
109 rq: &mut CpuRunQueue, in check_preempt_currnet() argument
116 fn pick_task(rq: &mut CpuRunQueue) -> Option<Arc<ProcessControlBlock>>; in pick_task()
120 rq: &mut CpuRunQueue, in pick_next_task() argument
125 fn tick(rq: &mut CpuRunQueue, pcb: Arc<ProcessControlBlock>, queued: bool); in tick() argument
130 fn put_prev_task(rq: &mut CpuRunQueue, prev: Arc<ProcessControlBlock>); in put_prev_task() argument
288 pub struct CpuRunQueue { struct
331 impl CpuRunQueue { argument
989 let rq = Arc::new(CpuRunQueue::new(cpu)); in sched_init()