Skip to content
This repository has been archived by the owner on Feb 19, 2022. It is now read-only.

Commit

Permalink
Check rtprio for SCHED_FIFO (closes #6)
Browse files Browse the repository at this point in the history
Explicitly check we can change to a higher rtprio for the
'SCHED_FIFO' scheduler, which is what we'll be usually interested
in for audio work.
  • Loading branch information
raboof committed May 16, 2016
1 parent c7ec6c0 commit 9d53250
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions RtprioCheck.pm
Expand Up @@ -30,7 +30,7 @@ sub new
sub execute
{
my $self = shift;
my $rtprioout = `chrt 80 echo success`;
my $rtprioout = `chrt -f 80 echo success`;
if ($rtprioout =~ /success/)
{
$self->{RESULTKIND} = "good";
Expand All @@ -41,7 +41,7 @@ sub execute
{
$self->{RESULTKIND} = "not good";
$self->{RESULT} = "no";
$self->{COMMENT} = "Could not assign a 80 rtprio value. Set up limits.conf.\n".
$self->{COMMENT} = "Could not assign a 80 rtprio SCHED_FIFO value. Set up limits.conf.\n".
"For more information, see http://wiki.linuxaudio.org/wiki/system_configuration#limitsconfaudioconf";
}
}
Expand Down

0 comments on commit 9d53250

Please sign in to comment.