Skip to content

utils: Fix gaining realtime scheduling with musl

Vlad Zahorodnii requested to merge work/cherry-pick-5921be95 into Plasma/6.1

sched_setscheduler() is implemented as a stub in musl that does nothing because Linux provides no way to set scheduling parameters per process.

Use pthread_setschedparam() to change the scheduling parameters of the threads instead.

BUG: 487996

(cherry picked from commit 5921be95)

Co-authored-by: Vlad Zahorodnii vlad.zahorodnii@kde.org

Merge request reports

Loading