Revert "[9820] sched: core: fix bug that rt could not be binded to little"
authorJohnlay Park <jonglae.park@samsung.com>
Thu, 5 Apr 2018 11:56:20 +0000 (20:56 +0900)
committerCosmin Tanislav <demonsingur@gmail.com>
Mon, 22 Apr 2024 17:24:54 +0000 (20:24 +0300)
This reverts commit 5933bc155713c86efe99c096ca7ff7421ca53f46

Change-Id: Ib4d852432562747b74472f2dd2c32abd8ea5d4f3

kernel/sched/core.c

index d26941aa5af91c83eaf9a9cc7f394368c5f672ba..625be667604728ecffdeb00461a73360e39e149d 100644 (file)
@@ -4307,15 +4307,6 @@ change:
        if (running)
                set_curr_task(rq, p);
 
-       if (p->sched_class == &rt_sched_class) {
-               struct cpumask mask;
-
-               cpumask_andnot(&mask, &p->cpus_allowed, cpu_coregroup_mask(4));
-               cpumask_andnot(&mask, &p->cpus_allowed, cpu_coregroup_mask(6));
-               if (!cpumask_empty(&mask))
-                       do_set_cpus_allowed(p, &mask);
-       }
-
        check_class_changed(rq, p, prev_class, oldprio);
 
        /* Avoid rq from going away on us: */