From: Philippe Gerum <rpm@xenomai.org>
To: Steven Seeger <sseeger@domain.hid>
Cc: xenomai@xenomai.org
Subject: Re: [Xenomai-help] xnpod_schedule 2.4.6.1
Date: Thu, 29 Jan 2009 22:59:40 +0100 [thread overview]
Message-ID: <498226CC.1020504@domain.hid> (raw)
In-Reply-To: <51CAD0CE1504444DBE77CBBE51A0135D590A7C@slcmail.slc.mew.int>
Steven Seeger wrote:
> Forgive me if this has been asked before.
>
>
>
> In xnpod_schedule I notice there is a call to
> xnlock_get_irqsave(&nklock, s);
>
>
>
> Further down, this call is made again followed by
> xnlock_put_irqrestore(&nklock, s);
>
>
>
> The comments say that the lock is not held, but from what I can tell it
> previously was. I was just pointing out this observation in case it was
> a bug. It looks like this function has been changed a lot in trunk, so
> perhaps anything relating to this was fixed since 2.4.6.1.
>
There is a Xenomai to Linux context switch in between, and the nklock was indeed
released in that case. This code is correct.
>
>
> Steven
>
>
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> Xenomai-help mailing list
> Xenomai-help@domain.hid
> https://mail.gna.org/listinfo/xenomai-help
--
Philippe.
next prev parent reply other threads:[~2009-01-29 21:59 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-01-29 20:52 [Xenomai-help] xnpod_schedule 2.4.6.1 Steven Seeger
2009-01-29 21:59 ` Philippe Gerum [this message]
2009-01-29 22:05 ` Steven Seeger
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=498226CC.1020504@domain.hid \
--to=rpm@xenomai.org \
--cc=sseeger@domain.hid \
--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.