All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jan Kiszka <jan.kiszka@domain.hid>
To: Gilles Chanteperdrix <gilles.chanteperdrix@xenomai.org>
Cc: Markus Osterried <Markus.Osterried@domain.hid>,
	xenomai@xenomai.org, Thomas Necker <Thomas.Necker@domain.hid>
Subject: Re: Antwort: Re: [Xenomai-core] Questions about pSOS task mode and task priority
Date: Wed, 31 Jan 2007 11:26:49 +0100	[thread overview]
Message-ID: <45C06EE9.3020501@domain.hid> (raw)
In-Reply-To: <45C0615B.5060909@domain.hid>

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

Gilles Chanteperdrix wrote:
> Philippe Gerum wrote:
>>>> In short, the following patch against 2.3.0 stock fixes the issue,
>>>> allowing threads to block while holding the scheduler lock. 
>>> Ok, but this means that the skins which use XNLOCK with the previous
>>> meaning need fixing.
>>>
>>
>> Only those which really wanted - i.e. by design - to return an error
>> flag (or the board to lockup or panic) in case of a thread going to
>> sleep while holding the schedlock. This change does not affect the
>> schedlock semantics otherwise.
>>
> 
> I do not understand how it works, I mean, how do you know, in
> xnpod_schedule, if xnpod_schedule was voluntarily called by the current
> thread, or was called upon reception of an interruption ?

sched->inesting manages the scheduler lock in interrupt context (and
XNLOCK requires Xenomai thread context anyway - something an interrupt
handler cannot expect). So that part is not affected by the XNLOCK changes.

Jan


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

      parent reply	other threads:[~2007-01-31 10:26 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-01-26 17:16 Antwort: Re: [Xenomai-core] Questions about pSOS task mode and task priority Thomas Necker
2007-01-26 17:26 ` Philippe Gerum
2007-01-29 13:25   ` Gilles Chanteperdrix
2007-01-29 14:53     ` Philippe Gerum
2007-01-30  7:49       ` [Xenomai-core] Xenomai Bits on MIPS somshekar kadam
2007-01-30  9:21         ` Jan Kiszka
2007-01-31  0:40     ` Antwort: Re: [Xenomai-core] Questions about pSOS task mode and task priority Philippe Gerum
2007-01-31  8:55       ` Gilles Chanteperdrix
2007-01-31  9:10         ` Philippe Gerum
2007-01-31  9:28           ` Gilles Chanteperdrix
2007-01-31 10:24             ` Philippe Gerum
2007-01-31 10:26             ` Jan Kiszka [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=45C06EE9.3020501@domain.hid \
    --to=jan.kiszka@domain.hid \
    --cc=Markus.Osterried@domain.hid \
    --cc=Thomas.Necker@domain.hid \
    --cc=gilles.chanteperdrix@xenomai.org \
    --cc=xenomai@xenomai.org \
    /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.