diff options
author | Santosh Shukla <santosh.shukla@linaro.org> | 2014-08-13 16:42:37 +0530 |
---|---|---|
committer | santosh shukla <santosh.shukla@linaro.org> | 2014-08-19 01:40:38 +0530 |
commit | 03232b00b381d87738f2e17bcd2d418b235f7c55 (patch) | |
tree | 042672dfc1e7bc337848a0003cb015afc5305b25 | |
parent | 8df07f2d26a9b0ef76326436379b7eba193d13a2 (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.
Signed-off-by: Santosh Shukla <santosh.shukla@linaro.org>
-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 95fbf8c..fe03c30 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 |