Skip to content

RFC Prevent cpufreq update for only task on rq that sleeps

Joel Fernandes lkml 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 RFC Latest2 patches 3 repliesIn review
  2. v1 RFC2 patches 0 repliesSuperseded

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2Revert "sched/fair: Drop always true parameter of update_cfs_rq_load_avg()"kernel/sched/fair.c+8 -70 replies
2/2sched/fair: Skip frequency update if CPU about to idlekernel/sched/fair.c kernel/sched/sched.h+23 -30 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.

Read the v2 thread

Cover letter [PATCH RFC RESEND v2 0/2] Prevent cpufreq update for only task on rq that sleeps

These patches are just a repost of [1] and [2] with a cover letter for more history and backround. On the Pixel product we carry a similar path which was also posted some time ago to LKML [3] [4] however that patch was for schedfreq governor (which isn't upstream). For schedutil which is upstream and currently used on our future products, we go through the cpufreq update hooks and this patch is adapted for this usecase.

[1] https://patchwork.kernel.org/patch/9910019/
[2] https://patchwork.kernel.org/patch/9910017/
[3] https://patchwork.kernel.org/patch/8385861/
[4] https://lwn.net/Articles/676886/

Joel Fernandes (2):
Revert "sched/fair: Drop always true parameter of

    update_cfs_rq_load_avg()"

sched/fair: Skip frequency update if CPU about to idle

 kernel/sched/fair.c  | 38 +++++++++++++++++++++++++++++---------
 kernel/sched/sched.h |  1 +
 2 files changed, 30 insertions(+), 9 deletions(-)
Cc Srinivas Pandruvada <[email protected]>
Cc Len Brown <[email protected]>
Cc Rafael J. Wysocki <[email protected]>
Cc Viresh Kumar <[email protected]>
Cc Ingo Molnar <[email protected]>
Cc Peter Zijlstra <[email protected]>
Cc Juri Lelli <[email protected]>
Cc Patrick Bellasi <[email protected]>
Cc Steve Muckle <[email protected]>
Signature · 1 line
2.14.1.581.gf28d330327-goog