sched: build fix
authorIngo Molnar <mingo@elte.hu>
Fri, 27 Jun 2008 13:42:36 +0000 (15:42 +0200)
committerIngo Molnar <mingo@elte.hu>
Mon, 30 Jun 2008 06:37:13 +0000 (08:37 +0200)
fix:

kernel/sched.c: In function ‘sched_group_set_shares':
kernel/sched.c:8635: error: implicit declaration of function ‘cfs_rq_set_shares'

Signed-off-by: Ingo Molnar <mingo@elte.hu>
kernel/sched.c

index 7613f69..058250a 100644 (file)
@@ -1627,11 +1627,6 @@ static void update_h_load(int cpu)
        walk_tg_tree(tg_load_down, tg_nop, cpu, NULL);
 }
 
-static void cfs_rq_set_shares(struct cfs_rq *cfs_rq, unsigned long shares)
-{
-       cfs_rq->shares = shares;
-}
-
 #else
 
 static inline void update_shares(struct sched_domain *sd)
@@ -1646,6 +1641,13 @@ static inline void update_shares_locked(struct rq *rq, struct sched_domain *sd)
 
 #endif
 
+static void cfs_rq_set_shares(struct cfs_rq *cfs_rq, unsigned long shares)
+{
+#if defined(CONFIG_SMP) && defined(CONFIG_FAIR_GROUP_SCHED)
+       cfs_rq->shares = shares;
+#endif
+}
+
 #include "sched_stats.h"
 #include "sched_idletask.c"
 #include "sched_fair.c"