static void torture_rtmutex_boost(struct torture_random_state *trsp)
 {
-       int policy;
-       struct sched_param param;
        const unsigned int factor = 50000; /* yes, quite arbitrary */
 
        if (!rt_task(current)) {
                 */
                if (trsp && !(torture_random(trsp) %
                              (cxt.nrealwriters_stress * factor))) {
-                       policy = SCHED_FIFO;
-                       param.sched_priority = MAX_RT_PRIO - 1;
+                       sched_set_fifo(current);
                } else /* common case, do nothing */
                        return;
        } else {
                 */
                if (!trsp || !(torture_random(trsp) %
                               (cxt.nrealwriters_stress * factor * 2))) {
-                       policy = SCHED_NORMAL;
-                       param.sched_priority = 0;
+                       sched_set_normal(current, 0);
                } else /* common case, do nothing */
                        return;
        }
-
-       sched_setscheduler_nocheck(current, policy, ¶m);
 }
 
 static void torture_rtmutex_delay(struct torture_random_state *trsp)