aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBjoern Brandenburg <bbb@mpi-sws.org>2013-07-01 16:38:20 -0400
committerBjoern Brandenburg <bbb@mpi-sws.org>2013-08-07 03:46:57 -0400
commitd4bc489e94c6727d0f593ea2ace5a8a2e376b9bf (patch)
treec8608231abe3b981842326bccfea589695990398
parent794436e81c3a7dd2baad276dac891cb81ed15ae5 (diff)
Splice LITMUS^RT scheduling class into scheduler hierarchy above rt class
Below stop_machine tasks, as such tasks never arise during normal operation.
-rw-r--r--kernel/sched/sched.h1
-rw-r--r--kernel/sched/stop_task.c2
2 files changed, 2 insertions, 1 deletions
diff --git a/kernel/sched/sched.h b/kernel/sched/sched.h
index e8e1bcc5aaa9..fc579e161dc0 100644
--- a/kernel/sched/sched.h
+++ b/kernel/sched/sched.h
@@ -1022,6 +1022,7 @@ struct sched_class {
1022 for (class = sched_class_highest; class; class = class->next) 1022 for (class = sched_class_highest; class; class = class->next)
1023 1023
1024extern const struct sched_class stop_sched_class; 1024extern const struct sched_class stop_sched_class;
1025extern const struct sched_class litmus_sched_class;
1025extern const struct sched_class rt_sched_class; 1026extern const struct sched_class rt_sched_class;
1026extern const struct sched_class fair_sched_class; 1027extern const struct sched_class fair_sched_class;
1027extern const struct sched_class idle_sched_class; 1028extern const struct sched_class idle_sched_class;
diff --git a/kernel/sched/stop_task.c b/kernel/sched/stop_task.c
index 6835d31dd45b..b45e05819151 100644
--- a/kernel/sched/stop_task.c
+++ b/kernel/sched/stop_task.c
@@ -111,7 +111,7 @@ get_rr_interval_stop(struct rq *rq, struct task_struct *task)
111 * Simple, special scheduling class for the per-CPU stop tasks: 111 * Simple, special scheduling class for the per-CPU stop tasks:
112 */ 112 */
113const struct sched_class stop_sched_class = { 113const struct sched_class stop_sched_class = {
114 .next = &rt_sched_class, 114 .next = &litmus_sched_class,
115 115
116 .enqueue_task = enqueue_task_stop, 116 .enqueue_task = enqueue_task_stop,
117 .dequeue_task = dequeue_task_stop, 117 .dequeue_task = dequeue_task_stop,