[RFC PATCH 17/22] sched/fair: Clear pick on throttled indicator when task leave fair class

K Prateek Nayak posted 22 patches 10 months ago
[RFC PATCH 17/22] sched/fair: Clear pick on throttled indicator when task leave fair class
Posted by K Prateek Nayak 10 months ago
Prepare switched_from_fair() to clear the "sched_throttled" indicator
when task leaves the fair class.

Signed-off-by: K Prateek Nayak <kprateek.nayak@amd.com>
---
 kernel/sched/fair.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/kernel/sched/fair.c b/kernel/sched/fair.c
index 3bcb56a62266..423c5a95989e 100644
--- a/kernel/sched/fair.c
+++ b/kernel/sched/fair.c
@@ -13805,6 +13805,7 @@ static void attach_task_cfs_rq(struct task_struct *p)
 
 static void switched_from_fair(struct rq *rq, struct task_struct *p)
 {
+	task_clear_throttled(p);
 	detach_task_cfs_rq(p);
 }
 
-- 
2.43.0