diff options
author | Viresh Kumar <viresh.kumar@linaro.org> | 2014-05-09 15:32:32 +0530 |
---|---|---|
committer | Viresh Kumar <viresh.kumar@linaro.org> | 2014-05-09 16:04:30 +0530 |
commit | f65e73fa4f419b1a61295ec474f8748a27b30c3a (patch) | |
tree | 5fd4782c67975ab2276b193de6c4d383265541d9 | |
parent | 97cd698f46250318184f064e0c9b16dbe593bfe2 (diff) |
is-cpu-isolated: Add another parameter to call specific parts
Change-Id: Ic5e831c1330ef3d9f864ee19d74208b694bc5269
Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
-rwxr-xr-x | common/scripts/is-cpu-isolated.sh | 18 |
1 files changed, 15 insertions, 3 deletions
diff --git a/common/scripts/is-cpu-isolated.sh b/common/scripts/is-cpu-isolated.sh index 8caca66..f12259d 100755 --- a/common/scripts/is-cpu-isolated.sh +++ b/common/scripts/is-cpu-isolated.sh @@ -299,6 +299,18 @@ clear_cpusets() { } # tests to run -isolate_cpu -get_isolation_duration -clear_cpusets +if [ $4 ]; then + if [ $4 -eq 1 ]; then + isolate_cpu + elif [ $4 -eq 2 ]; then + get_isolation_duration + elif [ $4 -eq 3 ]; then + clear_cpusets + else + update_non_isol_cpus + fi +else + isolate_cpu + get_isolation_duration + clear_cpusets +fi |