All of lore.kernel.org
 help / color / mirror / Atom feed
From: Gilles Chanteperdrix <gilles.chanteperdrix@xenomai.org>
To: Jan Kiszka <jan.kiszka@domain.hid>
Cc: Xenomai core <Xenomai-core@domain.hid>
Subject: Re: [Xenomai-core] [RFC][PATCH] nucleus: Prevent rescheduling while in	xntbase_tick
Date: Fri, 17 Jun 2011 12:58:14 +0200	[thread overview]
Message-ID: <4DFB3346.6000405@domain.hid> (raw)
In-Reply-To: <4DFB1E0B.1070903@domain.hid>

On 06/17/2011 11:27 AM, Jan Kiszka wrote:
> Based on code inspection, it looks like a timer handler triggering a
> reschedule in the path xntbase_tick -> xntimer_tick_aperiodic /
> xntimer_tick_periodic_inner -> handler can cause problems, e.g. a
> reschedule before all expired timers were processed. The timer core is
> usually run atomically from an interrupt handler, so better emulate an
> IRQ context inside xntbase_tick by setting XNINIRQ.

I do not understand this one either: if we are inside
xntimer_tick_aperiodic, XNINIRQ is already set.


-- 
                                                                Gilles.


  reply	other threads:[~2011-06-17 10:58 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-06-17  9:27 [Xenomai-core] [RFC][PATCH] nucleus: Prevent rescheduling while in xntbase_tick Jan Kiszka
2011-06-17 10:58 ` Gilles Chanteperdrix [this message]
2011-06-17 11:03   ` Jan Kiszka
2011-06-17 11:58     ` Philippe Gerum
2011-06-17 12:11       ` Jan Kiszka
2011-06-17 12:12         ` Philippe Gerum

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=4DFB3346.6000405@domain.hid \
    --to=gilles.chanteperdrix@xenomai.org \
    --cc=Xenomai-core@domain.hid \
    --cc=jan.kiszka@domain.hid \
    /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.