diff options
Diffstat (limited to 'kernel')
-rw-r--r-- | kernel/sched.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/kernel/sched.c b/kernel/sched.c index 058250a63b64..677c80b9a6b5 100644 --- a/kernel/sched.c +++ b/kernel/sched.c | |||
@@ -1641,12 +1641,14 @@ static inline void update_shares_locked(struct rq *rq, struct sched_domain *sd) | |||
1641 | 1641 | ||
1642 | #endif | 1642 | #endif |
1643 | 1643 | ||
1644 | #ifdef CONFIG_FAIR_GROUP_SCHED | ||
1644 | static void cfs_rq_set_shares(struct cfs_rq *cfs_rq, unsigned long shares) | 1645 | static void cfs_rq_set_shares(struct cfs_rq *cfs_rq, unsigned long shares) |
1645 | { | 1646 | { |
1646 | #if defined(CONFIG_SMP) && defined(CONFIG_FAIR_GROUP_SCHED) | 1647 | #ifdef CONFIG_SMP |
1647 | cfs_rq->shares = shares; | 1648 | cfs_rq->shares = shares; |
1648 | #endif | 1649 | #endif |
1649 | } | 1650 | } |
1651 | #endif | ||
1650 | 1652 | ||
1651 | #include "sched_stats.h" | 1653 | #include "sched_stats.h" |
1652 | #include "sched_idletask.c" | 1654 | #include "sched_idletask.c" |