Commit 2abdad0a authored by Harvey Harrison's avatar Harvey Harrison Committed by Ingo Molnar

sched: make rt_sched_class, idle_sched_class static

The C files are included directly in sched.c, so they are
effectively static.
Signed-off-by: default avatarHarvey Harrison <harvey.harrison@gmail.com>
Acked-by: default avatarPeter Zijlstra <a.p.zijlstra@chello.nl>
Signed-off-by: default avatarIngo Molnar <mingo@elte.hu>
parent e05510d0
...@@ -99,7 +99,7 @@ static void prio_changed_idle(struct rq *rq, struct task_struct *p, ...@@ -99,7 +99,7 @@ static void prio_changed_idle(struct rq *rq, struct task_struct *p,
/* /*
* Simple, special scheduling class for the per-CPU idle tasks: * Simple, special scheduling class for the per-CPU idle tasks:
*/ */
const struct sched_class idle_sched_class = { static const struct sched_class idle_sched_class = {
/* .next is NULL */ /* .next is NULL */
/* no enqueue/yield_task for idle tasks */ /* no enqueue/yield_task for idle tasks */
......
...@@ -1309,7 +1309,7 @@ static void set_curr_task_rt(struct rq *rq) ...@@ -1309,7 +1309,7 @@ static void set_curr_task_rt(struct rq *rq)
p->se.exec_start = rq->clock; p->se.exec_start = rq->clock;
} }
const struct sched_class rt_sched_class = { static const struct sched_class rt_sched_class = {
.next = &fair_sched_class, .next = &fair_sched_class,
.enqueue_task = enqueue_task_rt, .enqueue_task = enqueue_task_rt,
.dequeue_task = dequeue_task_rt, .dequeue_task = dequeue_task_rt,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment