Lines Matching refs:current
326 current: Weak<ProcessControlBlock>, field
353 current: Weak::new(), in new()
468 if pcb.sched_info().policy() == self.current().sched_info().policy() { in check_preempt_currnet()
469 match self.current().sched_info().policy() { in check_preempt_currnet()
477 } else if pcb.sched_info().policy() < self.current().sched_info().policy() { in check_preempt_currnet()
482 if *self.current().sched_info().on_rq.lock_irqsave() == OnRq::Queued in check_preempt_currnet()
483 && self.current().flags().contains(ProcessFlags::NEED_SCHEDULE) in check_preempt_currnet()
611 pub fn current(&self) -> Arc<ProcessControlBlock> { in current() method
612 self.current.upgrade().unwrap() in current()
617 self.current = pcb; in set_current()
632 let current = self.current(); in resched_current() localVariable
635 if unlikely(current.flags().contains(ProcessFlags::NEED_SCHEDULE)) { in resched_current()
800 let current = rq.current(); in scheduler_tick() localVariable
805 match current.sched_info().policy() { in scheduler_tick()
806 SchedPolicy::CFS => CompletelyFairScheduler::tick(rq, current, false), in scheduler_tick()
809 SchedPolicy::IDLE => IdleScheduler::tick(rq, current, false), in scheduler_tick()
834 let mut prev = rq.current(); in __schedule()
938 let current = ProcessManager::current_pcb(); in sched_fork() localVariable
940 prio_guard.prio = current.sched_info().prio_data.read_irqsave().normal_prio; in sched_fork()