diff options
author | Santosh Shukla <santosh.shukla@linaro.org> | 2014-08-19 21:52:59 +0530 |
---|---|---|
committer | Viresh Kumar <viresh.kumar@linaro.org> | 2014-08-20 14:20:59 +0530 |
commit | e71038268a122472a6e7650e889df18a75cfcb68 (patch) | |
tree | 13d7d5bf7f6831f659b6b9cf12bc3d5637968156 /common | |
parent | 6d3738a5da2db66f17df850010a49ecc82f8741d (diff) |
is-cpu-isolated.sh: exit early in case of non-stress app
By default isolation script runs 'stress' tasks on isolated cores. This patch
changes it to not run 'stress' if user wants not to use 'stress' but some other
test.
Change-Id: I21f0d085f075adde4666bc8e4cb8747426a7b1ff
Signed-off-by: Santosh Shukla <santosh.shukla@linaro.org>
Acked-by: Viresh Kumar <viresh.kumar@linaro.org>
Not-Tested-by: Viresh Kumar <viresh.kumar@linaro.org>
Diffstat (limited to 'common')
-rwxr-xr-x | common/scripts/is-cpu-isolated.sh | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/common/scripts/is-cpu-isolated.sh b/common/scripts/is-cpu-isolated.sh index 99ae303..3122c71 100755 --- a/common/scripts/is-cpu-isolated.sh +++ b/common/scripts/is-cpu-isolated.sh @@ -148,6 +148,11 @@ create_dplane_cpuset() { echo $1 > /dev/cpuset/dplane/cpu$1/$CPUSET_PREFIX"cpus" echo 0 > /dev/cpuset/dplane/cpu$1/$CPUSET_PREFIX"sched_load_balance" + # exit early in case of non-stress app + if [ "stress" != "$TASK" ]; then + return + fi + # Move shell to isolated CPU echo $$ > /dev/cpuset/dplane/cpu$1/tasks |