sanitycheck should be looking for SCHED_FIFO
authorPaul Davis <paul@linuxaudiosystems.com>
Tue, 8 Feb 2011 23:40:32 +0000 (23:40 +0000)
committerPaul Davis <paul@linuxaudiosystems.com>
Tue, 8 Feb 2011 23:40:32 +0000 (23:40 +0000)
git-svn-id: svn://localhost/ardour2/branches/3.0@8783 d708f5d6-7413-0410-9779-e7cbd77b26cf

tools/sanity_check/systemtest.cpp

index c82167fa16ce2e348ffe361a7cbcbb3f3dc527d2..4801ac2f092ce68c3cbc7d3af22de7b27fc8b05f 100644 (file)
@@ -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)) {