lkml.org 
[lkml]   [2020]   [Jul]   [14]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Subject[PATCH 0/2] cpufreq_cooling: Get effective CPU utilization from scheduler
Date
Hi,

Schedutil and fair.c use schedutil_cpu_util() currently to get an idea
of how busy a CPU is. Do the same for cpufreq_cooling which uses CPU's
idle time currently to get load, which is used to calculate the current
power consumption of the CPUs.

Tested with hackbench and sysbench on Hikey (octa-core SMP) and no
regression was observed.

--
Viresh

Viresh Kumar (2):
sched/core: Rename and move schedutil_cpu_util to core.c
thermal: cpufreq_cooling: Reuse effective_cpu_util()

drivers/thermal/cpufreq_cooling.c | 65 +++++-------------
kernel/sched/core.c | 106 +++++++++++++++++++++++++++++
kernel/sched/cpufreq_schedutil.c | 108 +-----------------------------
kernel/sched/fair.c | 6 +-
kernel/sched/sched.h | 20 ++----
5 files changed, 130 insertions(+), 175 deletions(-)

--
2.25.0.rc1.19.g042ed3e048af

\
 
 \ /
  Last update: 2020-07-14 08:37    [W:0.163 / U:0.432 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site