diff options
author | Ingo Molnar <mingo@elte.hu> | 2007-10-15 11:00:12 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2007-10-15 11:00:12 -0400 |
commit | 5522d5d5f70005faeffff3ffc0cfa8eec0155de4 (patch) | |
tree | d05fc41d19b8a70102a0ad3ad7ed8f6fd2d1cf7d /kernel/sched_rt.c | |
parent | b9fa3df33f9166daf81bfa8253d339f5a7726122 (diff) |
sched: mark scheduling classes as const
mark scheduling classes as const. The speeds up the code
a bit and shrinks it:
text data bss dec hex filename
40027 4018 292 44337 ad31 sched.o.before
40190 3842 292 44324 ad24 sched.o.after
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Reviewed-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'kernel/sched_rt.c')
-rw-r--r-- | kernel/sched_rt.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/kernel/sched_rt.c b/kernel/sched_rt.c index e1d5f1c8b532..dbe4d8cf80d6 100644 --- a/kernel/sched_rt.c +++ b/kernel/sched_rt.c | |||
@@ -225,7 +225,8 @@ static void set_curr_task_rt(struct rq *rq) | |||
225 | p->se.exec_start = rq->clock; | 225 | p->se.exec_start = rq->clock; |
226 | } | 226 | } |
227 | 227 | ||
228 | static struct sched_class rt_sched_class __read_mostly = { | 228 | const struct sched_class rt_sched_class = { |
229 | .next = &fair_sched_class, | ||
229 | .enqueue_task = enqueue_task_rt, | 230 | .enqueue_task = enqueue_task_rt, |
230 | .dequeue_task = dequeue_task_rt, | 231 | .dequeue_task = dequeue_task_rt, |
231 | .yield_task = yield_task_rt, | 232 | .yield_task = yield_task_rt, |