[RAMEN9610-9418][COMMON] sched: frt: fix cpumask warnning bug
authorYoungtae Lee <yt0729.lee@samsung.com>
Mon, 8 Oct 2018 06:57:12 +0000 (15:57 +0900)
committerhskang <hs1218.kang@samsung.com>
Thu, 13 Dec 2018 11:41:49 +0000 (20:41 +0900)
Change-Id: I27eb08fdcbe6ce7b35a09a38b2aa2fb4b90e76a7
Signed-off-by: Youngtae Lee <yt0729.lee@samsung.com>
kernel/sched/rt.c

index 9e12d4d8a930b103f1e45dfc1f9720c6a8044185..2fd33e247c956c977a3d9e5b52862e6541e09f68 100644 (file)
@@ -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");