sched: kill off dead cfs_rq_set_shares()
authorPaul Mundt <lethal@linux-sh.org>
Mon, 9 Jun 2008 08:12:24 +0000 (17:12 +0900)
committerIngo Molnar <mingo@elte.hu>
Tue, 10 Jun 2008 12:51:04 +0000 (14:51 +0200)
Building with CONFIG_FAIR_GROUP_SCHED=y on UP results in an unused
cfs_rq_set_shares() reference. As nothing is using this dummy function
in the first place, just kill it off.

Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
kernel/sched.c

index 164fe7fe0d891615ffbcc680c9a8c439a9a14b54..07d5472dee99b3791a811fa8cb8ffbc3a496479f 100644 (file)
@@ -1480,16 +1480,8 @@ static unsigned long source_load(int cpu, int type);
 static unsigned long target_load(int cpu, int type);
 static unsigned long cpu_avg_load_per_task(int cpu);
 static int task_hot(struct task_struct *p, u64 now, struct sched_domain *sd);
-#else /* CONFIG_SMP */
-
-#ifdef CONFIG_FAIR_GROUP_SCHED
-static void cfs_rq_set_shares(struct cfs_rq *cfs_rq, unsigned long shares)
-{
-}
 #endif
 
-#endif /* CONFIG_SMP */
-
 #include "sched_stats.h"
 #include "sched_idletask.c"
 #include "sched_fair.c"