kong 34205659b5
Patch isolate sched_cfs (#62)
* 独立cfs到新的文件

* update

* bugfix: 解决调度器卡住的问题

Co-authored-by: longjin <longjin@RinGoTek.cn>
2022-10-17 18:04:41 +08:00

29 lines
434 B
C

#include "sched.h"
#include <common/kprint.h>
#include <driver/video/video.h>
#include <common/spinlock.h>
#include <sched/cfs.h>
/**
* @brief 包裹shced_cfs_enqueue(),将PCB加入就绪队列
*
* @param pcb
*/
void sched_enqueue(struct process_control_block *pcb)
{
sched_cfs_enqueue(pcb);
}
/**
* @brief 包裹sched_cfs(),调度函数
*
*/
void sched()
{
sched_cfs();
}
void sched_init()
{
sched_cfs_init();
}