diff options
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) | |||
1627 | walk_tg_tree(tg_load_down, tg_nop, cpu, NULL); | 1627 | walk_tg_tree(tg_load_down, tg_nop, cpu, NULL); |
1628 | } | 1628 | } |
1629 | 1629 | ||
1630 | static void cfs_rq_set_shares(struct cfs_rq *cfs_rq, unsigned long shares) | ||
1631 | { | ||
1632 | cfs_rq->shares = shares; | ||
1633 | } | ||
1634 | |||
1635 | #else | 1630 | #else |
1636 | 1631 | ||
1637 | static inline void update_shares(struct sched_domain *sd) | 1632 | 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) | |||
1646 | 1641 | ||
1647 | #endif | 1642 | #endif |
1648 | 1643 | ||
1644 | static void cfs_rq_set_shares(struct cfs_rq *cfs_rq, unsigned long shares) | ||
1645 | { | ||
1646 | #if defined(CONFIG_SMP) && defined(CONFIG_FAIR_GROUP_SCHED) | ||
1647 | cfs_rq->shares = shares; | ||
1648 | #endif | ||
1649 | } | ||
1650 | |||
1649 | #include "sched_stats.h" | 1651 | #include "sched_stats.h" |
1650 | #include "sched_idletask.c" | 1652 | #include "sched_idletask.c" |
1651 | #include "sched_fair.c" | 1653 | #include "sched_fair.c" |