Skip to content

cpufreq: governors: Avoid unnecessary per cpu timer interrupts

Viresh Kumar cpufreq linux-pm lkml 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v2 Latest2 patches 0 repliesNew

Changes in v2 from the cover letter

- Dropped Workqueue modifications and use system_wq directly.

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2cpufreq: ondemand: Don't update sample_type if we don't evaluate load againdrivers/cpufreq/cpufreq_ondemand.c+11 -130 replies
2/2cpufreq: governors: Avoid unnecessary per cpu timer interruptsdrivers/cpufreq/cpufreq_conservative.c drivers/cpufreq/cpufreq_governor.c drivers/cpufreq/cpufreq_governor.h +1 more+42 -190 replies

Reviews trailers per patch

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

Read the v2 thread

Cover letter [PATCH V2 0/2] cpufreq: governors: Avoid unnecessary per cpu timer interrupts

Following patch has introduced per cpu timers or works for ondemand and conservative governors.

commit 2abfa876f1117b0ab45f191fb1f82c41b1cbc8fe
Author: Rickard Andersson <[email protected]>
Date: Thu Dec 27 14:55:38 2012 +0000

cpufreq: handle SW coordinated CPUs

This causes additional unnecessary interrupts on all cpus when the load is recently evaluated by any other cpu. i.e. When load is recently evaluated by cpu x, we don't really need any other cpu to evaluate this load again for the next sampling_rate time.

Some sort of code is present to avoid that but we are still getting timer interrupts for all cpus. A good way of avoiding this would be to modify delays for all cpus (policy->cpus) whenever any cpu has evaluated load.

This patchset tries to fix this issue.

These patches are applied here:

http://git.linaro.org/gitweb?p=people/vireshk/linux.git;a=shortlog;h=refs/heads/for-3.10

V1->V2:
- Dropped Workqueue modifications and use system_wq directly.

Viresh Kumar (2):
cpufreq: ondemand: Don't update sample_type if we don't evaluate load
again
cpufreq: governors: Avoid unnecessary per cpu timer interrupts

 drivers/cpufreq/cpufreq_conservative.c |  8 ++++---
 drivers/cpufreq/cpufreq_governor.c     | 39 ++++++++++++++++++++++++----------
 drivers/cpufreq/cpufreq_governor.h     |  2 ++
 drivers/cpufreq/cpufreq_ondemand.c     | 34 ++++++++++++++---------------
 4 files changed, 52 insertions(+), 31 deletions(-)
Signature · 1 line
1.7.12.rc2.18.g61b472e