summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorViresh Kumar <viresh.kumar@linaro.org>2014-07-01 16:36:59 +0530
committerViresh Kumar <viresh.kumar@linaro.org>2014-07-02 15:33:05 +0530
commita2328cd2145754695a07520daa8943b36264ae36 (patch)
treed5c2162b191d6ab8b31c379e9609776cc142f00d
parentf7c5a9c384dd4819a27f2042d6ad2a59d7db28e2 (diff)
is-cpu-isolated: add delay before removing dplane cpuset
Change-Id: I4f17592c20027cd4739e188e1c9e14c99717b027 Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
-rwxr-xr-xcommon/scripts/is-cpu-isolated.sh5
1 files changed, 5 insertions, 0 deletions
diff --git a/common/scripts/is-cpu-isolated.sh b/common/scripts/is-cpu-isolated.sh
index 8bfb6f9..ddbebbf 100755
--- a/common/scripts/is-cpu-isolated.sh
+++ b/common/scripts/is-cpu-isolated.sh
@@ -377,6 +377,11 @@ clear_cpusets() {
# Remove the CPUsets
for_each_isol_cpu remove_dplane_cpuset
+
+ # delay required b/w cpu* cpusets and dplane cpuset for some reason,
+ # other wise we get this: Device or resource busy
+ sleep .1
+
rmdir /dev/cpuset/cplane
rmdir /dev/cpuset/dplane
}