[RFC,10/11] sched: Ensure cpu_power periodic update

Message ID CAKfTPtB=y48nc0rOt7Uevjuv3gBfBk=tNCVh++-gF9fqRKg_=Q@mail.gmail.com
State New
Headers show

Commit Message

Vincent Guittot Oct. 25, 2011, 6:02 a.m.
This fix adds a missing part in the [RFC 07/11].
It will be added in the next version.

Signed-off-by: Vincent Guittot <vincent.guittot@linaro.org>
---
 kernel/sched_fair.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

  */
@@ -3887,8 +3889,6 @@ void select_nohz_load_balancer(int stop_tick)

 static DEFINE_SPINLOCK(balancing);

-static unsigned long __read_mostly max_load_balance_interval = HZ/10;
-
 /*
  * Scale the max load_balance interval with the number of CPUs in the system.
  * This trades load-balance latency on larger machines for less cross talk.

Patch

diff --git a/kernel/sched_fair.c b/kernel/sched_fair.c
index 044ffcc..b3a54f4 100644
--- a/kernel/sched_fair.c
+++ b/kernel/sched_fair.c
@@ -91,6 +91,8 @@  unsigned int __read_mostly
sysctl_sched_shares_window = 10000000UL;

 static const struct sched_class fair_sched_class;

+static unsigned long __read_mostly max_load_balance_interval = HZ/10;
+
 /**************************************************************
  * CFS operations on generic schedulable entities: