sched: make rt_sched_class, idle_sched_class static
authorHarvey Harrison <harvey.harrison@gmail.com>
Fri, 25 Apr 2008 17:53:13 +0000 (10:53 -0700)
committerIngo Molnar <mingo@elte.hu>
Mon, 5 May 2008 21:56:17 +0000 (23:56 +0200)
The C files are included directly in sched.c, so they are
effectively static.

Signed-off-by: Harvey Harrison <harvey.harrison@gmail.com>
Acked-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
kernel/sched_idletask.c
kernel/sched_rt.c

index 2bcafa3..3a4f92d 100644 (file)
@@ -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:
  */
-const struct sched_class idle_sched_class = {
+static const struct sched_class idle_sched_class = {
        /* .next is NULL */
        /* no enqueue/yield_task for idle tasks */
 
index c2730a5..dcd6495 100644 (file)
@@ -1309,7 +1309,7 @@ static void set_curr_task_rt(struct rq *rq)
        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,
        .enqueue_task           = enqueue_task_rt,
        .dequeue_task           = dequeue_task_rt,