diff options
author | Viresh Kumar <viresh.kumar@linaro.org> | 2014-04-03 16:28:29 +0530 |
---|---|---|
committer | Viresh Kumar <viresh.kumar@linaro.org> | 2014-04-03 16:29:47 +0530 |
commit | af7059a2e79ff0d8ea6c2a8073d0e6ef9bbd68f1 (patch) | |
tree | 9f0ee64d511b46f87b27954caafca014a7d5249b /common | |
parent | ba6404a81a9720a7e225ca2732c0a370eb79c467 (diff) |
is-cpu-isolated: quiesce CPU by setting cpuset.quiesce option
A new feature is being introduced in kernel to migrate away all timers/hrtimers
away from CPU in question. Lets use it.
Change-Id: I63dfdb69cbb281e90ea1aa5df9f8544120e2dc66
Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
Diffstat (limited to 'common')
-rwxr-xr-x | common/scripts/is-cpu-isolated.sh | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/common/scripts/is-cpu-isolated.sh b/common/scripts/is-cpu-isolated.sh index edf76eb..a9ddf1e 100755 --- a/common/scripts/is-cpu-isolated.sh +++ b/common/scripts/is-cpu-isolated.sh @@ -205,6 +205,9 @@ isolate_cpu1() { # But disallow load balancing within the NOHZ domain echo 0 > /dev/cpuset/rt/sched_load_balance + # Quiesce CPU: i.e. migrate timers/hrtimers away + echo 1 > /dev/cpuset/rt/quiesce + stress -q --cpu 1 --timeout $STRESS_DURATION & # Restart CPU1 to migrate all tasks to CPU0 |