If not in SMP testing mode, the priority may go below 1, if the specified priority is lower than the number of threads, e.g. # cyclictest -p2 -t3 T: 0 (21970) P: 2 [..] T: 1 (21971) P: 1 [..] T: 2 (21972) P: 0 [..] Do not allow priority to go below 1. Signed-off-by: Carsten Emde <C.Emde@xxxxxxxxx> Index: rt-tests/src/cyclictest/cyclictest.c =================================================================== --- rt-tests.orig/src/cyclictest/cyclictest.c +++ rt-tests/src/cyclictest/cyclictest.c @@ -1304,7 +1304,7 @@ int main(int argc, char **argv) } par->prio = priority; - if (!sameprio) + if (priority > 1 && !sameprio) priority--; if (priority && policy <= 1) par->policy = SCHED_FIFO; else if (priority && policy == 2) par->policy = SCHED_RR; -- To unsubscribe from this list: send the line "unsubscribe linux-rt-users" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html