Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1668902
| From | Vincent Guittot <vincent.guittot@linaro.org> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | [PATCH v2 2/2] cpufreq/schedutil: add rt utilization tracking |
| Date | 2017-06-19 11:00 +0200 |
| Message-ID | <tU0Hn-n6-3@gated-at.bofh.it> (permalink) |
| References | <tU0Hn-n6-5@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
add both cfs and rt utilization when selecting an OPP as rt can preempt and
steal cfs's running time
---
kernel/sched/cpufreq_schedutil.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/kernel/sched/cpufreq_schedutil.c b/kernel/sched/cpufreq_schedutil.c
:if expand("%") == ""|browse confirm w|else|confirm w|endif
index 622eed1..bc292b92 100644
--- a/kernel/sched/cpufreq_schedutil.c
+++ b/kernel/sched/cpufreq_schedutil.c
@@ -164,7 +164,7 @@ static void sugov_get_util(unsigned long *util, unsigned long *max)
cfs_max = arch_scale_cpu_capacity(NULL, smp_processor_id());
- *util = min(rq->cfs.avg.util_avg, cfs_max);
+ *util = min(rq->cfs.avg.util_avg + rq->rt.avg.util_avg, cfs_max);
*max = cfs_max;
}
--
2.7.4
Back to linux.kernel | Previous | Next | Find similar | Unroll thread
[PATCH v2 2/2] cpufreq/schedutil: add rt utilization tracking Vincent Guittot <vincent.guittot@linaro.org> - 2017-06-19 11:00 +0200
csiph-web