From: "Cédric Perles" <cperles@sepro-group.com>
To: xenomai@xenomai.org
Subject: [Xenomai] ipipe + preempt_rt : spinlock issue
Date: Tue, 31 Oct 2017 12:03:50 +0100 (CET) [thread overview]
Message-ID: <006f01d35237$eedce810$cc96b830$@sepro-group.com> (raw)
Hi,
Im working on an iMX6 based board with NXP kernel 4.1.15.
I made a Xenomai 3.0.5/ipipe bsp that works well and I also made a
preempt-rt bsp that works well too.
However, now I would like to make a Xenomai/ipipe + preempt_rt bsp.
I adapted preempt_rt patch to fit to ipipe patched kernel but during
compilation Im facing issues concerning spinlocks:
drivers/gpio/gpio-generic.c:496:2: note: in expansion of macro
'spin_lock_init'
spin_lock_init(&bgc->lock);
^
include/linux/spinlock_rt.h:17:24: error: '__ipipe_spinlock_t {aka struct
<anonymous>}' has no member named 'lock'
rt_mutex_init(&(slock)->lock); \
Searching some help on internet, I realized that only a few people tried
to use both Xenomai and Preempt-rt.
=> Is it an heresy ? if so, Why ?
I thought it was the best way to limit preemption for the tasks that
switched temporarily to secondary mode.
=> If it is not a stupid idea, did somebody already resolve this kind of
conflict ? and how ?
Regards,
Cédric.
next reply other threads:[~2017-10-31 11:03 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-10-31 11:03 Cédric Perles [this message]
2017-11-01 20:56 ` [Xenomai] ipipe + preempt_rt : spinlock issue Philippe Gerum
2017-11-09 9:53 ` Cédric Perles
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='006f01d35237$eedce810$cc96b830$@sepro-group.com' \
--to=cperles@sepro-group.com \
--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.