Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,6 @@
"compiler_attributes.h": "c",
"timer.h": "c",
"hid.h": "c",
"cfs.h": "c",
"proc.h": "c",
"compiler.h": "c",
"hpet.h": "c",
Expand Down
1 change: 0 additions & 1 deletion kernel/src/include/bindings/wrapper.h
Original file line number Diff line number Diff line change
Expand Up @@ -29,5 +29,4 @@
#include <mm/mm.h>
#include <mm/slab.h>
#include <process/process.h>
#include <sched/cfs.h>
#include <sched/sched.h>
39 changes: 0 additions & 39 deletions kernel/src/sched/cfs.h

This file was deleted.

10 changes: 0 additions & 10 deletions kernel/src/sched/sched.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,6 @@

#define IS_VALID_SCHED_POLICY(_policy) ((_policy) > 0 && (_policy) <= SCHED_MAX_POLICY_NUM)



// struct sched_param
// {
// int sched_priority;
Expand Down Expand Up @@ -60,18 +58,10 @@
// */
// int sched_setscheduler(struct process_control_block *p, int policy, const struct sched_param *param);

/**
* @brief 包裹sched_enqueue(),将PCB加入就绪队列
*
* @param pcb
*/

// ================= Rust 实现 =============
extern void sched_update_jiffies();
extern void sched_init();
extern void sched();
extern void sched_enqueue(struct process_control_block *pcb);
extern void sched();

void switch_proc(struct process_control_block *prev, struct process_control_block *proc);