From e2be61804d9d4d3cbcf2c9e0c0e85cac8233e628 Mon Sep 17 00:00:00 2001 From: Youngtae Lee Date: Mon, 8 Oct 2018 15:57:12 +0900 Subject: [PATCH] [RAMEN9610-9418][COMMON] sched: frt: fix cpumask warnning bug Change-Id: I27eb08fdcbe6ce7b35a09a38b2aa2fb4b90e76a7 Signed-off-by: Youngtae Lee --- kernel/sched/rt.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/kernel/sched/rt.c b/kernel/sched/rt.c index 9e12d4d8a930..2fd33e247c95 100644 --- a/kernel/sched/rt.c +++ b/kernel/sched/rt.c @@ -2811,6 +2811,8 @@ static int find_lowest_rq_fluid(struct task_struct *task, int wake_flags) break; } out: + if (best_cpu == -1) + best_cpu = task_rq(task)->cpu; if (!cpumask_test_cpu(best_cpu, cpu_online_mask)) { trace_sched_fluid_stat(task, &task->rt.avg, cpu, "NOTHING_VALID"); -- 2.20.1