[COMMON] sched/rt: remove useless retrying core selection
authorJohnlay Park <jonglae.park@samsung.com>
Fri, 6 Apr 2018 11:33:48 +0000 (20:33 +0900)
committerChungwoo Park <cww.park@samsung.com>
Mon, 21 May 2018 08:35:40 +0000 (17:35 +0900)
due to the RT throttling in CPU Hotplug in/out

Change-Id: I9b82bdc511cfb49d3cb9b538d4fec6917624afc6
Signed-off-by: Johnlay Park <jonglae.park@samsung.com>
kernel/sched/rt.c

index 45c8809daf8ac2a61562e3715a695f5867bdb214..0da4b9f4b6d26ba7a1560d8befb39f433db52919 100644 (file)
@@ -2526,13 +2526,6 @@ static struct rq *find_lock_lowest_rq(struct task_struct *task, struct rq *rq)
 
                lowest_rq = cpu_rq(cpu);
 
-#ifdef CONFIG_SCHED_USE_FLUID_RT
-               /*
-                * Even though the lowest rq has a task of higher priority,
-                * FluidRT can expel it (victim task) if it has small utilization,
-                * or is not current task. Just keep trying.
-                */
-#else
                if (lowest_rq->rt.highest_prio.curr <= task->prio) {
                        /*
                         * Target rq has tasks of equal or higher priority,
@@ -2542,7 +2535,6 @@ static struct rq *find_lock_lowest_rq(struct task_struct *task, struct rq *rq)
                        lowest_rq = NULL;
                        break;
                }
-#endif
 
                /* if the prio of this runqueue changed, try again */
                if (double_lock_balance(rq, lowest_rq)) {
@@ -2564,11 +2556,6 @@ static struct rq *find_lock_lowest_rq(struct task_struct *task, struct rq *rq)
                        }
                }
 
-#ifdef CONFIG_SCHED_USE_FLUID_RT
-               /* task is still rt task */
-               if (likely(rt_task(task)))
-                       break;
-#else
                /* If this rq is still suitable use it. */
                if (lowest_rq->rt.highest_prio.curr > task->prio)
                        break;
@@ -2576,7 +2563,6 @@ static struct rq *find_lock_lowest_rq(struct task_struct *task, struct rq *rq)
                /* try again */
                double_unlock_balance(rq, lowest_rq);
                lowest_rq = NULL;
-#endif
        }
 
        return lowest_rq;