[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)
committerCosmin Tanislav <demonsingur@gmail.com>
Mon, 22 Apr 2024 17:24:57 +0000 (20:24 +0300)
Change-Id: I27eb08fdcbe6ce7b35a09a38b2aa2fb4b90e76a7
Signed-off-by: Youngtae Lee <yt0729.lee@samsung.com>
kernel/sched/rt.c

index 9dbdfd84869785540067fedd4daf9e5bad9504c4..da5b42c1ab6bb0e92aa8cf57c3741eb1d51f4070 100644 (file)
@@ -2827,6 +2827,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");