diff options
author | Arnaldo Carvalho de Melo <acme@redhat.com> | 2009-02-13 12:41:02 -0200 |
---|---|---|
committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2009-02-13 12:41:02 -0200 |
commit | 4e9bb712c65fc50d068423bbf2a1baa65486914f (patch) | |
tree | cee8cd32a5b05f74caded5dfd45b0984ff7d0c39 | |
parent | 80d1503bdf75f9981cd368910911d01ecc9c3620 (diff) | |
parent | 5b952da909e0aa3752b4f2b22b5b193e71819f80 (diff) | |
download | tuna-4e9bb712c65fc50d068423bbf2a1baa65486914f.tar.gz |
Merge branch 'master' of ssh://master.kernel.org/pub/scm/linux/kernel/git/acme/tunav0.8.4
-rwxr-xr-x | testuna | 13 |
1 files changed, 13 insertions, 0 deletions
@@ -199,6 +199,19 @@ if [ $NR_CPU_SOCKETS -ge 2 ]; then die_if_not_equal $((AFFINITY & CPU1_SIBLINGS)) $CPU1_SIBLINGS "Moving init to CPU socket $CPU1_SOCKET" fi +if [ $NR_PROCESSORS -gt 2 ]; then + THREAD_PREFIX="watchdog/" + PID=$(ps h -C ${THREAD_PREFIX}0 -o pid) + RTPRIO=$(get_rtprio $PID) + NEW_RTPRIO=$((RTPRIO - 1)) + tuna -t $THREAD_PREFIX* -p $NEW_RTPRIO + for CPU in $(seq 0 $((NR_PROCESSORS - 1))); do + PID=$(ps h -C ${THREAD_PREFIX}$CPU -o pid) + RTPRIO=$(get_rtprio $PID) + die_if_not_equal $RTPRIO $NEW_RTPRIO "Using --thread globbing" + done +fi + taskset -p $INITIAL_INIT_AFFINITY 1 > /dev/null rtctl --file $INITIAL reset |