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 /include | |
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 'include')
-rw-r--r-- | include/linux/sched.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/linux/sched.h b/include/linux/sched.h index 97f736b749c2..47e3717a0356 100644 --- a/include/linux/sched.h +++ b/include/linux/sched.h | |||
@@ -863,7 +863,7 @@ struct rq; | |||
863 | struct sched_domain; | 863 | struct sched_domain; |
864 | 864 | ||
865 | struct sched_class { | 865 | struct sched_class { |
866 | struct sched_class *next; | 866 | const struct sched_class *next; |
867 | 867 | ||
868 | void (*enqueue_task) (struct rq *rq, struct task_struct *p, int wakeup); | 868 | void (*enqueue_task) (struct rq *rq, struct task_struct *p, int wakeup); |
869 | void (*dequeue_task) (struct rq *rq, struct task_struct *p, int sleep); | 869 | void (*dequeue_task) (struct rq *rq, struct task_struct *p, int sleep); |
@@ -949,7 +949,7 @@ struct task_struct { | |||
949 | 949 | ||
950 | int prio, static_prio, normal_prio; | 950 | int prio, static_prio, normal_prio; |
951 | struct list_head run_list; | 951 | struct list_head run_list; |
952 | struct sched_class *sched_class; | 952 | const struct sched_class *sched_class; |
953 | struct sched_entity se; | 953 | struct sched_entity se; |
954 | 954 | ||
955 | #ifdef CONFIG_PREEMPT_NOTIFIERS | 955 | #ifdef CONFIG_PREEMPT_NOTIFIERS |