]> bbs.cooldavid.org Git - net-next-2.6.git/blobdiff - include/linux/sched.h
sched: mark scheduling classes as const
[net-next-2.6.git] / include / linux / sched.h
index 97f736b749c291f3093319feea4fb0aae6908471..47e3717a0356fe1ebfbdb1c757e37a62cf2be1ee 100644 (file)
@@ -863,7 +863,7 @@ struct rq;
 struct sched_domain;
 
 struct sched_class {
-       struct sched_class *next;
+       const struct sched_class *next;
 
        void (*enqueue_task) (struct rq *rq, struct task_struct *p, int wakeup);
        void (*dequeue_task) (struct rq *rq, struct task_struct *p, int sleep);
@@ -949,7 +949,7 @@ struct task_struct {
 
        int prio, static_prio, normal_prio;
        struct list_head run_list;
-       struct sched_class *sched_class;
+       const struct sched_class *sched_class;
        struct sched_entity se;
 
 #ifdef CONFIG_PREEMPT_NOTIFIERS