Searched refs:SchedPolicy (Results 1 – 6 of 6) sorted by relevance
/DragonOS/kernel/src/sched/ |
H A D | mod.rs | 136 pub enum SchedPolicy { enum 412 SchedPolicy::CFS => CompletelyFairScheduler::enqueue(self, pcb, flags), in enqueue_task() 413 SchedPolicy::FIFO => todo!(), in enqueue_task() 414 SchedPolicy::RT => todo!(), in enqueue_task() 415 SchedPolicy::IDLE => IdleScheduler::enqueue(self, pcb, flags), in enqueue_task() 443 SchedPolicy::CFS => CompletelyFairScheduler::dequeue(self, pcb, flags), in dequeue_task() 444 SchedPolicy::FIFO => todo!(), in dequeue_task() 445 SchedPolicy::RT => todo!(), in dequeue_task() 446 SchedPolicy::IDLE => IdleScheduler::dequeue(self, pcb, flags), in dequeue_task() 470 SchedPolicy::CFS => { in check_preempt_currnet() [all …]
|
H A D | pelt.rs | 9 CpuRunQueue, LoadWeight, SchedPolicy, SCHED_CAPACITY_SCALE, SCHED_CAPACITY_SHIFT, 177 if pcb.sched_info().policy() != SchedPolicy::CFS { in post_init_entity_util_avg()
|
H A D | fair.rs | 22 CpuRunQueue, DequeueFlag, EnqueueFlag, LoadWeight, OnRq, SchedPolicy, Scheduler, TaskGroup, 163 return self.pcb().sched_info().policy() == SchedPolicy::IDLE; in is_idle() 1413 let mut idle_h_nr_running = pcb.sched_info().policy() == SchedPolicy::IDLE; in enqueue() 1475 let mut idle_h_nr_running = pcb.sched_info().policy() == SchedPolicy::IDLE; in dequeue() 1603 if unlikely(curr.sched_info().policy() == SchedPolicy::IDLE) in check_preempt_currnet() 1604 && likely(pcb.sched_info().policy() != SchedPolicy::IDLE) in check_preempt_currnet() 1610 if unlikely(pcb.sched_info().policy() != SchedPolicy::CFS) in check_preempt_currnet() 1717 || (prev.is_some() && prev.as_ref().unwrap().sched_info().policy() != SchedPolicy::CFS) in pick_next_task() 1721 SchedPolicy::RT => todo!(), in pick_next_task() 1722 SchedPolicy::FIFO => todo!(), in pick_next_task() [all …]
|
/DragonOS/kernel/src/process/ |
H A D | idle.rs | 62 *idle_pcb.sched_info().sched_policy.write_irqsave() = crate::sched::SchedPolicy::IDLE; in init_idle()
|
H A D | mod.rs | 1205 pub sched_policy: RwLock<crate::sched::SchedPolicy>, 1289 sched_policy: RwLock::new(crate::sched::SchedPolicy::CFS), in new() 1393 pub fn policy(&self) -> crate::sched::SchedPolicy { in policy() argument
|
/DragonOS/kernel/src/init/ |
H A D | initial_kthread.rs | 75 *current_pcb.sched_info().sched_policy.write_irqsave() = crate::sched::SchedPolicy::CFS; in switch_to_user()
|