diff options
author | Zelin Tong <ztong@ludwig.cs.unc.edu> | 2020-11-16 08:51:55 -0500 |
---|---|---|
committer | Zelin Tong <ztong@ludwig.cs.unc.edu> | 2020-11-16 08:51:55 -0500 |
commit | e133e1f631a0673dc64e13ac87f377bf8750c878 (patch) | |
tree | 6643c448aab7aa1835eec7852f79d61b018e9531 | |
parent | c663e6e8d1c45e1c8978772417843efae30353cf (diff) |
Changed Ordering of sched classes to stop->dl->rt->litmus->fair->idle
-rw-r--r-- | kernel/sched/litmus.c | 2 | ||||
-rw-r--r-- | kernel/sched/rt.c | 2 | ||||
-rw-r--r-- | kernel/sched/sched.h | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/kernel/sched/litmus.c b/kernel/sched/litmus.c index d9c59998155b..2c6576ad7f6c 100644 --- a/kernel/sched/litmus.c +++ b/kernel/sched/litmus.c | |||
@@ -360,7 +360,7 @@ const struct sched_class litmus_sched_class = { | |||
360 | * cpu-hotplug or cpu throttling. Allows Litmus to use up to 1.0 | 360 | * cpu-hotplug or cpu throttling. Allows Litmus to use up to 1.0 |
361 | * CPU capacity. | 361 | * CPU capacity. |
362 | */ | 362 | */ |
363 | .next = &stop_sched_class, | 363 | .next = &fair_sched_class, |
364 | .enqueue_task = enqueue_task_litmus, | 364 | .enqueue_task = enqueue_task_litmus, |
365 | .dequeue_task = dequeue_task_litmus, | 365 | .dequeue_task = dequeue_task_litmus, |
366 | .yield_task = yield_task_litmus, | 366 | .yield_task = yield_task_litmus, |
diff --git a/kernel/sched/rt.c b/kernel/sched/rt.c index ec2cdd9e347f..ccb4318246b5 100644 --- a/kernel/sched/rt.c +++ b/kernel/sched/rt.c | |||
@@ -2326,7 +2326,7 @@ static unsigned int get_rr_interval_rt(struct rq *rq, struct task_struct *task) | |||
2326 | } | 2326 | } |
2327 | 2327 | ||
2328 | const struct sched_class rt_sched_class = { | 2328 | const struct sched_class rt_sched_class = { |
2329 | .next = &fair_sched_class, | 2329 | .next = &litmus_sched_class, |
2330 | .enqueue_task = enqueue_task_rt, | 2330 | .enqueue_task = enqueue_task_rt, |
2331 | .dequeue_task = dequeue_task_rt, | 2331 | .dequeue_task = dequeue_task_rt, |
2332 | .yield_task = yield_task_rt, | 2332 | .yield_task = yield_task_rt, |
diff --git a/kernel/sched/sched.h b/kernel/sched/sched.h index 34e2f3bd7875..98205294958b 100644 --- a/kernel/sched/sched.h +++ b/kernel/sched/sched.h | |||
@@ -1304,7 +1304,7 @@ static inline void set_curr_task(struct rq *rq, struct task_struct *curr) | |||
1304 | * but existing plugins (that predate the stop-machine class) depend on the | 1304 | * but existing plugins (that predate the stop-machine class) depend on the |
1305 | * assumption that LITMUS^RT plugins are the top scheduling class (FIXME). | 1305 | * assumption that LITMUS^RT plugins are the top scheduling class (FIXME). |
1306 | */ | 1306 | */ |
1307 | #define sched_class_highest (&litmus_sched_class) | 1307 | #define sched_class_highest (&stop_sched_class) |
1308 | #define for_each_class(class) \ | 1308 | #define for_each_class(class) \ |
1309 | for (class = sched_class_highest; class; class = class->next) | 1309 | for (class = sched_class_highest; class; class = class->next) |
1310 | 1310 | ||