All of lore.kernel.org
 help / color / mirror / Atom feed
From: tommy <tommy@kelsos.ptp>
To: alsa-devel@alsa-project.org
Cc: ptp@lysator.liu.se
Subject: [alsa-devel] alsa-utils say -c is sched_idle, but actually set sched_rr (BUG?)
Date: Mon, 2 Dec 2019 16:17:22 +0100	[thread overview]
Message-ID: <20191202151722.GA13104@kelsos> (raw)

Hi,

I'm not subscribed to the list.  I was looking for uses of SCHED_IDLE in
software in general when I stubled upon this.  Although I have no personal
interest in asla development, I thought it would be nice to report it here.

alsa-project/alsa-utils commit 611249ae26f435429dbe1894e210704a723ee277 says:

    alsactl: add --nice and --sched-idle options

    The state management can run at low priority, add --nice and --sched-idle
    options to set the scheduler.


Everywhere in the code it says SCHED_IDLE *except* for the actual call to
sched_setscheduler() which instead sets the policy to SCHED_RR.  I have
looked twice to see that I don't miss anything obvious, and suspect this is
an error, or that there should be a comment that explains this oddity.

Kind regards,
Tommy
_______________________________________________
Alsa-devel mailing list
Alsa-devel@alsa-project.org
https://mailman.alsa-project.org/mailman/listinfo/alsa-devel

             reply	other threads:[~2019-12-03 11:09 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-12-02 15:17 tommy [this message]
2019-12-03 12:55 ` [alsa-devel] alsa-utils say -c is sched_idle, but actually set sched_rr (BUG?) Jaroslav Kysela

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20191202151722.GA13104@kelsos \
    --to=tommy@kelsos.ptp \
    --cc=alsa-devel@alsa-project.org \
    --cc=ptp@lysator.liu.se \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.