diff options
-rw-r--r-- | kernel/sched/litmus.c | 2 | ||||
-rw-r--r-- | kernel/sched/sched.h | 4 |
2 files changed, 4 insertions, 2 deletions
diff --git a/kernel/sched/litmus.c b/kernel/sched/litmus.c index 924358babde2..9d58690cf51a 100644 --- a/kernel/sched/litmus.c +++ b/kernel/sched/litmus.c | |||
@@ -324,7 +324,7 @@ const struct sched_class litmus_sched_class = { | |||
324 | * cpu-hotplug or cpu throttling. Allows Litmus to use up to 1.0 | 324 | * cpu-hotplug or cpu throttling. Allows Litmus to use up to 1.0 |
325 | * CPU capacity. | 325 | * CPU capacity. |
326 | */ | 326 | */ |
327 | .next = &dl_sched_class, | 327 | .next = &stop_sched_class, |
328 | .enqueue_task = enqueue_task_litmus, | 328 | .enqueue_task = enqueue_task_litmus, |
329 | .dequeue_task = dequeue_task_litmus, | 329 | .dequeue_task = dequeue_task_litmus, |
330 | .yield_task = yield_task_litmus, | 330 | .yield_task = yield_task_litmus, |
diff --git a/kernel/sched/sched.h b/kernel/sched/sched.h index 79807c2aa961..156389d32fbc 100644 --- a/kernel/sched/sched.h +++ b/kernel/sched/sched.h | |||
@@ -1231,10 +1231,12 @@ static inline void put_prev_task(struct rq *rq, struct task_struct *prev) | |||
1231 | prev->sched_class->put_prev_task(rq, prev); | 1231 | prev->sched_class->put_prev_task(rq, prev); |
1232 | } | 1232 | } |
1233 | 1233 | ||
1234 | #define sched_class_highest (&stop_sched_class) | 1234 | #define sched_class_highest (&litmus_sched_class) |
1235 | |||
1235 | #define for_each_class(class) \ | 1236 | #define for_each_class(class) \ |
1236 | for (class = sched_class_highest; class; class = class->next) | 1237 | for (class = sched_class_highest; class; class = class->next) |
1237 | 1238 | ||
1239 | extern const struct sched_class litmus_sched_class; | ||
1238 | extern const struct sched_class stop_sched_class; | 1240 | extern const struct sched_class stop_sched_class; |
1239 | extern const struct sched_class dl_sched_class; | 1241 | extern const struct sched_class dl_sched_class; |
1240 | extern const struct sched_class rt_sched_class; | 1242 | extern const struct sched_class rt_sched_class; |