diff options
author | Ingo Molnar <mingo@elte.hu> | 2008-06-27 15:42:36 +0200 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2008-06-30 08:37:13 +0200 |
commit | 34e83e850f5e5ee2a18cd77a5d70d31972a632e6 (patch) | |
tree | d72ee2385d1281ba3cc2cd52db5d08b3a2cc06f7 /kernel/sched.c | |
parent | 2d452c9b10caeec455eb5e56a0ef4ed485178213 (diff) | |
download | blackbird-op-linux-34e83e850f5e5ee2a18cd77a5d70d31972a632e6.tar.gz blackbird-op-linux-34e83e850f5e5ee2a18cd77a5d70d31972a632e6.zip |
sched: build fix
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>
Diffstat (limited to 'kernel/sched.c')
-rw-r--r-- | kernel/sched.c | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/kernel/sched.c b/kernel/sched.c index 7613f69f0978..058250a63b64 100644 --- a/kernel/sched.c +++ b/kernel/sched.c @@ -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" |