summaryrefslogtreecommitdiff
path: root/tools/sanity_check
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2011-02-08 23:40:32 +0000
committerPaul Davis <paul@linuxaudiosystems.com>2011-02-08 23:40:32 +0000
commita8cc2b5a748d9447c752b20a6968acb64bbd0775 (patch)
tree5dec0c90876921164075dd2a3892ee2ed1f2edda /tools/sanity_check
parentb7ec5b4b4014afc44d24876899d3741dfa45345e (diff)
sanitycheck should be looking for SCHED_FIFO
git-svn-id: svn://localhost/ardour2/branches/3.0@8783 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'tools/sanity_check')
-rw-r--r--tools/sanity_check/systemtest.cpp4
1 files changed, 2 insertions, 2 deletions
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)) {