Lines Matching refs:cpu_id
20 pub fn cpu_executing(cpu_id: u32) -> &'static mut process_control_block { in cpu_executing()
23 if cpu_id == process_cpu(current_pcb()) { in cpu_executing()
31 pub fn get_cpu_loads(cpu_id: u32) -> u32 { in get_cpu_loads()
34 let len_cfs = cfs_scheduler.get_cfs_queue_len(cpu_id); in get_cpu_loads()
35 let len_rt = rt_scheduler.rt_queue_len(cpu_id); in get_cpu_loads()
47 let mut min_loads_cpu_id = pcb.cpu_id; in loads_balance()
48 let mut min_loads = get_cpu_loads(pcb.cpu_id); in loads_balance()
49 for cpu_id in 0..cpu_num { in loads_balance()
50 let tmp_cpu_loads = get_cpu_loads(cpu_id); in loads_balance()
52 min_loads_cpu_id = cpu_id; in loads_balance()
59 if (min_loads_cpu_id != pcb.cpu_id) && (pcb.flags & (PF_NEED_MIGRATE as u64)) == 0 { in loads_balance()
82 match rt_scheduler.pick_next_task_rt(current_pcb().cpu_id) { in do_sched()
122 pcb.cpu_id = pcb.migrate_to; in sched_enqueue()
172 pub extern "C" fn sched_set_cpu_idle(cpu_id: usize, pcb: *mut process_control_block) { in sched_set_cpu_idle()
173 __get_cfs_scheduler().set_cpu_idle(cpu_id, pcb); in sched_set_cpu_idle()