public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: "Jack O'Quin" <joq@io.com>
To: Florian Schmidt <mista.tapas@gmx.net>
Cc: Andrew Burgess <aab@cichlid.com>,
	linux-kernel@vger.kernel.org, jackit-devel@lists.sourceforge.net
Subject: Re: [Jackit-devel] Re: Real-Time Preemption, -RT-2.6.10-rc2-mm3-V0.7.31-19
Date: 02 Dec 2004 11:07:39 -0600	[thread overview]
Message-ID: <87hdn4eihw.fsf@sulphur.joq.us> (raw)
In-Reply-To: <20041202175756.0e50f101@mango.fruits.de>

Florian Schmidt <mista.tapas@gmx.net> writes:

> I suppose instead of catching the signal the user might just monitor the
> syslog. I'm not sure there's printk's triggered by thisalready , but i'm
> sure if not, ingo might add them. So a trivial patch for jackd would
> probably look like this:
> 
> --- libjack/client.c.orig       2004-12-02 17:55:04.000000000 +0100
> +++ libjack/client.c    2004-12-02 17:56:23.000000000 +0100
> @@ -1238,6 +1238,9 @@
>                         if (control->sync_cb)
>                                 jack_call_sync_client (client);
>  
> +                       // enable atomicity check for RP kernels
> +                       gettimeofday(1,1);
> +
>                         if (control->process) {
>                                 if (control->process (control->nframes,
>                                                       control->process_arg)
> @@ -1247,7 +1250,10 @@
>                         } else {
>                                 control->state = Finished;
>                         }
> -
> +
> +                       // disable atomicity check
> +                       gettimeofday(0,1);
> +
>                         if (control->timebase_cb)
>                                 jack_call_timebase_master (client);
>  

The sync_cb and timebase_cb callbacks actually need to be RT-safe,
too.  ;-)

Is printk() guaranteed not to wait inside the kernel?  I am not
familiar with its internal implementation.
-- 
  joq

  reply	other threads:[~2004-12-02 17:07 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-12-02 15:46 Real-Time Preemption, -RT-2.6.10-rc2-mm3-V0.7.31-19 Andrew Burgess
2004-12-02 16:03 ` [Jackit-devel] " Florian Schmidt
2004-12-02 16:26   ` Jack O'Quin
2004-12-02 16:57     ` Florian Schmidt
2004-12-02 17:07       ` Jack O'Quin [this message]
2004-12-02 20:07         ` Lee Revell
2004-12-02 20:48           ` Jack O'Quin
2004-12-02 17:09       ` Florian Schmidt
2004-12-02 17:32         ` Jack O'Quin
2004-12-02 20:03           ` Florian Schmidt
2004-12-02 21:10             ` Florian Schmidt
2004-12-02 22:34 ` Bill Huey

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=87hdn4eihw.fsf@sulphur.joq.us \
    --to=joq@io.com \
    --cc=aab@cichlid.com \
    --cc=jackit-devel@lists.sourceforge.net \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mista.tapas@gmx.net \
    /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