aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/sched.c
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/sched.c')
-rw-r--r--kernel/sched.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/kernel/sched.c b/kernel/sched.c
index ae659b99ce7..f592ce6f861 100644
--- a/kernel/sched.c
+++ b/kernel/sched.c
@@ -5473,6 +5473,8 @@ EXPORT_SYMBOL(yield);
5473 * yield_to - yield the current processor to another thread in 5473 * yield_to - yield the current processor to another thread in
5474 * your thread group, or accelerate that thread toward the 5474 * your thread group, or accelerate that thread toward the
5475 * processor it's on. 5475 * processor it's on.
5476 * @p: target task
5477 * @preempt: whether task preemption is allowed or not
5476 * 5478 *
5477 * It's the caller's job to ensure that the target task struct 5479 * It's the caller's job to ensure that the target task struct
5478 * can't go away on us before we can do any checks. 5480 * can't go away on us before we can do any checks.
@@ -8449,7 +8451,6 @@ int alloc_fair_sched_group(struct task_group *tg, struct task_group *parent)
8449{ 8451{
8450 struct cfs_rq *cfs_rq; 8452 struct cfs_rq *cfs_rq;
8451 struct sched_entity *se; 8453 struct sched_entity *se;
8452 struct rq *rq;
8453 int i; 8454 int i;
8454 8455
8455 tg->cfs_rq = kzalloc(sizeof(cfs_rq) * nr_cpu_ids, GFP_KERNEL); 8456 tg->cfs_rq = kzalloc(sizeof(cfs_rq) * nr_cpu_ids, GFP_KERNEL);
@@ -8462,8 +8463,6 @@ int alloc_fair_sched_group(struct task_group *tg, struct task_group *parent)
8462 tg->shares = NICE_0_LOAD; 8463 tg->shares = NICE_0_LOAD;
8463 8464
8464 for_each_possible_cpu(i) { 8465 for_each_possible_cpu(i) {
8465 rq = cpu_rq(i);
8466
8467 cfs_rq = kzalloc_node(sizeof(struct cfs_rq), 8466 cfs_rq = kzalloc_node(sizeof(struct cfs_rq),
8468 GFP_KERNEL, cpu_to_node(i)); 8467 GFP_KERNEL, cpu_to_node(i));
8469 if (!cfs_rq) 8468 if (!cfs_rq)