aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/sched_fair.c
diff options
context:
space:
mode:
authorIngo Molnar <mingo@elte.hu>2007-10-15 11:00:12 -0400
committerIngo Molnar <mingo@elte.hu>2007-10-15 11:00:12 -0400
commit5522d5d5f70005faeffff3ffc0cfa8eec0155de4 (patch)
treed05fc41d19b8a70102a0ad3ad7ed8f6fd2d1cf7d /kernel/sched_fair.c
parentb9fa3df33f9166daf81bfa8253d339f5a7726122 (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_fair.c')
-rw-r--r--kernel/sched_fair.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/kernel/sched_fair.c b/kernel/sched_fair.c
index de13a6f5b977..32fd976f8566 100644
--- a/kernel/sched_fair.c
+++ b/kernel/sched_fair.c
@@ -76,8 +76,6 @@ const_debug unsigned int sysctl_sched_batch_wakeup_granularity = 25000000UL;
76 */ 76 */
77const_debug unsigned int sysctl_sched_wakeup_granularity = 2000000UL; 77const_debug unsigned int sysctl_sched_wakeup_granularity = 2000000UL;
78 78
79extern struct sched_class fair_sched_class;
80
81/************************************************************** 79/**************************************************************
82 * CFS operations on generic schedulable entities: 80 * CFS operations on generic schedulable entities:
83 */ 81 */
@@ -1031,7 +1029,8 @@ static void set_curr_task_fair(struct rq *rq)
1031/* 1029/*
1032 * All the scheduling class methods: 1030 * All the scheduling class methods:
1033 */ 1031 */
1034struct sched_class fair_sched_class __read_mostly = { 1032static const struct sched_class fair_sched_class = {
1033 .next = &idle_sched_class,
1035 .enqueue_task = enqueue_task_fair, 1034 .enqueue_task = enqueue_task_fair,
1036 .dequeue_task = dequeue_task_fair, 1035 .dequeue_task = dequeue_task_fair,
1037 .yield_task = yield_task_fair, 1036 .yield_task = yield_task_fair,