From a8cc2b5a748d9447c752b20a6968acb64bbd0775 Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Tue, 8 Feb 2011 23:40:32 +0000 Subject: sanitycheck should be looking for SCHED_FIFO git-svn-id: svn://localhost/ardour2/branches/3.0@8783 d708f5d6-7413-0410-9779-e7cbd77b26cf --- tools/sanity_check/systemtest.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tools') diff --git a/tools/sanity_check/systemtest.cpp b/tools/sanity_check/systemtest.cpp index c82167fa16..4801ac2f09 100644 --- a/tools/sanity_check/systemtest.cpp +++ b/tools/sanity_check/systemtest.cpp @@ -249,13 +249,13 @@ int system_user_can_rtprio() { memset(&schparam, 0, sizeof(struct sched_param)); - if (-1 == (min_prio = sched_get_priority_min(SCHED_RR))) { + if (-1 == (min_prio = sched_get_priority_min(SCHED_FIFO))) { perror("sched_get_priority"); exit(EXIT_FAILURE); } schparam.sched_priority = min_prio; - if (0 == sched_setscheduler(0, SCHED_RR, &schparam)) { + if (0 == sched_setscheduler(0, SCHED_FIFO, &schparam)) { // TODO: restore previous state schparam.sched_priority = 0; if (0 != sched_setscheduler(0, SCHED_OTHER, &schparam)) { -- cgit v1.2.3