将当前的sched_cfs函数做一个包裹,套一层sched(). (#32)

* 将当前的sched_cfs函数做一个包裹,套一层sched().

* 用sched()包裹sched_cfs(),用sched_enqueue()包裹sched_cfs_enqueue()

* 用sched()包裹sched_cfs(),用sched_enqueue()包裹sched_cfs_enqueue(),并替换

* bugfix: 修正拼写错误导致的编译错误

* 修正拼写错误

Co-authored-by: fslongjin <longjin@RinGoTek.cn>
This commit is contained in:
houmkh
2022-08-31 07:59:31 +08:00
committed by GitHub
parent 8bc8890070
commit 1a2d405384
10 changed files with 59 additions and 28 deletions

View File

@ -47,6 +47,16 @@ void sched_cfs_enqueue(struct process_control_block *pcb)
++sched_cfs_ready_queue[proc_current_cpu_id].count;
}
/**
* @brief 包裹shced_cfs_enqueue(),将PCB加入就绪队列
*
* @param pcb
*/
void sched_enqueue(struct process_control_block *pcb)
{
sched_cfs_enqueue(pcb);
}
/**
* @brief 调度函数
*
@ -118,6 +128,15 @@ void sched_cfs()
sti();
}
/**
* @brief 包裹sched_cfs(),调度函数
*
*/
void sched()
{
sched_cfs();
}
/**
* @brief 当时钟中断到达时,更新时间片
*