diff mbox series

[RFC,5/7] sched/fair: Enable CFS periodic tick to update thermal pressure

Message ID 1539102302-9057-6-git-send-email-thara.gopinath@linaro.org
State New
Headers show
Series [RFC,1/7] sched/pelt.c: Add option to make load and util calculations frequency invariant | expand

Commit Message

Thara Gopinath Oct. 9, 2018, 4:25 p.m. UTC
Introduce support in CFS periodic tick to trigger the process of
computing average thermal pressure for a cpu.

Signed-off-by: Thara Gopinath <thara.gopinath@linaro.org>

---
 kernel/sched/fair.c | 3 +++
 1 file changed, 3 insertions(+)

-- 
2.1.4
diff mbox series

Patch

diff --git a/kernel/sched/fair.c b/kernel/sched/fair.c
index b39fb59..7deb1d0 100644
--- a/kernel/sched/fair.c
+++ b/kernel/sched/fair.c
@@ -21,6 +21,7 @@ 
  *  Copyright (C) 2007 Red Hat, Inc., Peter Zijlstra
  */
 #include "sched.h"
+#include "thermal.h"
 
 #include <trace/events/sched.h>
 
@@ -9557,6 +9558,8 @@  static void task_tick_fair(struct rq *rq, struct task_struct *curr, int queued)
 
 	if (static_branch_unlikely(&sched_numa_balancing))
 		task_tick_numa(rq, curr);
+
+	update_periodic_maxcap(rq);
 }
 
 /*