aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrederic Weisbecker <fweisbec@gmail.com>2014-05-26 23:22:15 +0200
committerFrederic Weisbecker <fweisbec@gmail.com>2014-05-26 23:23:10 +0200
commit9b39ab06956d484d5311e0678e1fba8104a8e2e3 (patch)
tree4b6f692df2f429aca7515e556ab5f37a511aa15b
parent49c96d4c1806745f7ba9cceff1b6316e7bbf88c4 (diff)
downloaddynticks-testing-9b39ab06956d484d5311e0678e1fba8104a8e2e3.tar.gz
dynticks_testing: Migrate all tasks to CPU 0HEADmaster
Lets move all possible tasks to timekeeper Signed-off-by: Frederic Weisbecker <fweisbec@gmail.com>
-rwxr-xr-xrun18
1 files changed, 7 insertions, 11 deletions
diff --git a/run b/run
index ac866be..b19e4b9 100755
--- a/run
+++ b/run
@@ -4,18 +4,14 @@
# it must be part of nohz_full kernel parameter
TARGET=1
-NR_CPUS=$(getconf _NPROCESSORS_ONLN)
-
-# Migrate nocb tasks to CPU 0
-# Beware, this assume that there is no online CPU > NR_CPUS
-for CPU in $(seq $(($NR_CPUS-1)))
+# Migrate all possible tasks to CPU 0
+for P in $(ls /proc)
do
- PIDS=$(ps -o pid= -C rcuob/$CPU,rcuos/$CPU,rcuop/$CPU)
- for PID in $PIDS
- do
- taskset -cp 0 $PID
- done
-
+ if [ -x "/proc/$P/task/" ]
+ then
+ echo $P
+ taskset -acp 0 $P
+ fi
done
# Migrate irqs to CPU 0