diff options
author | Frederic Weisbecker <fweisbec@gmail.com> | 2014-05-26 23:22:15 +0200 |
---|---|---|
committer | Frederic Weisbecker <fweisbec@gmail.com> | 2014-05-26 23:23:10 +0200 |
commit | 9b39ab06956d484d5311e0678e1fba8104a8e2e3 (patch) | |
tree | 4b6f692df2f429aca7515e556ab5f37a511aa15b | |
parent | 49c96d4c1806745f7ba9cceff1b6316e7bbf88c4 (diff) | |
download | dynticks-testing-9b39ab06956d484d5311e0678e1fba8104a8e2e3.tar.gz |
Lets move all possible tasks to timekeeper
Signed-off-by: Frederic Weisbecker <fweisbec@gmail.com>
-rwxr-xr-x | run | 18 |
1 files changed, 7 insertions, 11 deletions
@@ -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 |