diff options
author | Fathi Boudra <fathi.boudra@linaro.org> | 2014-05-09 10:35:24 +0000 |
---|---|---|
committer | Linaro Code Review <review@review.linaro.org> | 2014-05-09 10:35:24 +0000 |
commit | 7fa09fadc9bd5718f21116b02e635edfce8016c6 (patch) | |
tree | 833423c11c60c0b9154eb26d2947a1c4b2f29202 | |
parent | 183d092e5529867cd9eb49c55a0c6bad132ab8f3 (diff) | |
parent | f65e73fa4f419b1a61295ec474f8748a27b30c3a (diff) |
Merge "is-cpu-isolated: Add another parameter to call specific parts"
-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 |