[PATCH 1/3 v2] sched: Fix incorrect rq tagged as forced idle

From: Aaron Lu
Date: Thu Aug 08 2019 - 11:57:46 EST


Incorrect run queue was tagged as forced idle.
Tag the correct one.

Signed-off-by: Aaron Lu <aaron.lu@xxxxxxxxxxxxxxxxx>
Signed-off-by: Tim Chen <tim.c.chen@xxxxxxxxxxxxxxx>
---
kernel/sched/core.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/kernel/sched/core.c b/kernel/sched/core.c
index e3cd9cb17809..50453e1329f3 100644
--- a/kernel/sched/core.c
+++ b/kernel/sched/core.c
@@ -3903,7 +3903,7 @@ next_class:;
WARN_ON_ONCE(!rq_i->core_pick);

if (is_idle_task(rq_i->core_pick) && rq_i->nr_running)
- rq->core_forceidle = true;
+ rq_i->core_forceidle = true;

rq_i->core_pick->core_occupation = occ;

--
2.20.1

--------------patch 2------------------------