public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Gregory Haskins <ghaskins@novell.com>
To: Zoltan Bus <zoltan.bus@gmail.com>
Cc: linux-kernel@vger.kernel.org
Subject: Re: Problem with wake_up using real-time scheduling
Date: Thu, 02 Jul 2009 13:10:02 -0400	[thread overview]
Message-ID: <4A4CE9EA.6090807@novell.com> (raw)
In-Reply-To: <233789ed0906300144q209886b3qfb6737175a3660a0@mail.gmail.com>

[-- Attachment #1: Type: text/plain, Size: 871 bytes --]

Zoltan Bus wrote:
> Hello,
>
> I have a problem on kernel 2.6.26.3. I have a real-time task which
> uses the select system call to poll my audio driver. The sleeping task
> is waken up by wake_up() from an interrupt handler.
> The problem is, that the wake_up() function  sometimes does not wake
> up the task if real-time priority is used.
>
> The try_to_wake_up() returns from the out_running section, because of the check
>
>       if (p->se.on_rq)
>               goto out_running;
>
> There are no other tasks running when the poll function is called.
>
> Is this a known problem? Is it fixed somehow in newer versions?
> Unfortunately I do not have the possibility to change the newest kernel version.
> I am a newbie at linux, thank you very much for your help.
>
>   

That *should* work fine.  Can you post your code?

Regards,
-Greg


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 266 bytes --]

      parent reply	other threads:[~2009-07-02 17:10 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-06-30  8:44 Problem with wake_up using real-time scheduling Zoltan Bus
2009-07-01  1:38 ` Robert Hancock
2009-07-02 17:10 ` Gregory Haskins [this message]

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=4A4CE9EA.6090807@novell.com \
    --to=ghaskins@novell.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=zoltan.bus@gmail.com \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox