sched.c 434 B

1234567891011121314151617181920212223242526272829
  1. #include "sched.h"
  2. #include <common/kprint.h>
  3. #include <driver/video/video.h>
  4. #include <common/spinlock.h>
  5. #include <sched/cfs.h>
  6. /**
  7. * @brief 包裹shced_cfs_enqueue(),将PCB加入就绪队列
  8. *
  9. * @param pcb
  10. */
  11. void sched_enqueue(struct process_control_block *pcb)
  12. {
  13. sched_cfs_enqueue(pcb);
  14. }
  15. /**
  16. * @brief 包裹sched_cfs(),调度函数
  17. *
  18. */
  19. void sched()
  20. {
  21. sched_cfs();
  22. }
  23. void sched_init()
  24. {
  25. sched_cfs_init();
  26. }