From f65e73fa4f419b1a61295ec474f8748a27b30c3a Mon Sep 17 00:00:00 2001 From: Viresh Kumar Date: Fri, 9 May 2014 15:32:32 +0530 Subject: is-cpu-isolated: Add another parameter to call specific parts Change-Id: Ic5e831c1330ef3d9f864ee19d74208b694bc5269 Signed-off-by: Viresh Kumar --- common/scripts/is-cpu-isolated.sh | 18 +++++++++++++++--- 1 file 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 -- cgit v1.2.3