From: Jan Kiszka <jan.kiszka@siemens.com>
To: Gilles Chanteperdrix <gilles.chanteperdrix@xenomai.org>,
Xenomai <xenomai@xenomai.org>
Subject: Re: [Xenomai] rtdm_lock_get
Date: Tue, 22 Sep 2015 20:53:10 +0200 [thread overview]
Message-ID: <5601A396.7020605@siemens.com> (raw)
In-Reply-To: <20150919112648.GB22852@hermes.click-hack.org>
On 2015-09-19 13:26, Gilles Chanteperdrix wrote:
> Hi,
>
> now that rtdm_lock_get() locks the scheduler, and if moved the
> scheduler lock before the spin_lock, would not it be possible to use
> rtdm_lock_get() with irqs on ?
Conceptually, yes. People will only have to be more carefully to use the
right mechanism depending on if there are IRQ-based users or not - just
like under Linux. We avoided this trap so far.
Maybe we should ask the user to mark IRQ-free spinlocks via a special
rtdm_lock_init_noirq. Then we could validate the caller's context in a
debug version.
Jan
--
Siemens AG, Corporate Technology, CT RTC ITP SES-DE
Corporate Competence Center Embedded Linux
prev parent reply other threads:[~2015-09-22 18:53 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-09-19 11:26 [Xenomai] rtdm_lock_get Gilles Chanteperdrix
2015-09-22 18:53 ` 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=5601A396.7020605@siemens.com \
--to=jan.kiszka@siemens.com \
--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.