All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jan Kiszka <jan.kiszka@domain.hid>
To: Philippe Gerum <rpm@xenomai.org>
Cc: xenomai-core <xenomai@xenomai.org>
Subject: Re: [Xenomai-core] False positive XENO_BUGON(NUCLEUS, need_resched == 0)?
Date: Mon, 30 Aug 2010 11:15:16 +0200	[thread overview]
Message-ID: <4C7B76A4.1030801@domain.hid> (raw)
In-Reply-To: <4C7B70F9.1090903@domain.hid>

Jan Kiszka wrote:
> Philippe Gerum wrote:
>> This makes sense. I'm currently testing the patch below which implements
>> a close variant of Gilles's proposal. Could you try it as well, to see
>> if things improve?
>> http://git.xenomai.org/?p=xenomai-rpm.git;a=commit;h=3200660065146915976c193387bf0851be10d0cc
> 
> Will test ASAP.

Works fine here so far.

Jan

> 
>> The logic makes sure that we can keep calling xnsched_set_resched() then
>> xnpod_schedule() outside of the same critical section, which is
>> something we need. Otherwise this requirement would extend to
>> xnpod_suspend/resume_thread(), which is not acceptable.
> 
> I still wonder if things can't be even simpler. What is the purpose of
> xnsched_t::resched? I first thought it's just there to coalesce multiple
> remote reschedule requests, thus IPIs triggered by one CPU over
> successive wakeups etc. If that is true, why going through resched for
> local changes, why not setting XNRESCHED directly? And why not setting
> the remote XNRESCHED instead of remote's xnsched_t::resched?
> 
> Jan
> 

-- 
Siemens AG, Corporate Technology, CT T DE IT 1
Corporate Competence Center Embedded Linux


  reply	other threads:[~2010-08-30  9:15 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-08-27  9:22 [Xenomai-core] False positive XENO_BUGON(NUCLEUS, need_resched == 0)? Jan Kiszka
2010-08-27  9:43 ` Gilles Chanteperdrix
2010-08-27 12:32   ` Jan Kiszka
2010-08-27 12:39     ` Gilles Chanteperdrix
2010-08-27 17:09       ` Jan Kiszka
2010-08-27 17:29         ` Gilles Chanteperdrix
2010-08-27 17:31           ` Gilles Chanteperdrix
2010-08-27 17:51             ` Jan Kiszka
2010-08-27 18:01               ` Gilles Chanteperdrix
2010-08-27 18:09                 ` Jan Kiszka
2010-08-28 16:40                   ` Philippe Gerum
2010-08-30  8:51                     ` Jan Kiszka
2010-08-30  9:15                       ` Jan Kiszka [this message]
2010-08-30 15:11                       ` Philippe Gerum
2010-08-30 15:39                         ` Jan Kiszka
2010-08-31  7:09                           ` Philippe Gerum
2010-08-31 14:52                             ` Philippe Gerum
2010-09-01  8:39                             ` Gilles Chanteperdrix
2010-09-01 10:52                               ` Philippe Gerum
2010-09-01 11:12                                 ` Gilles Chanteperdrix
2010-08-30 15:52                         ` Gilles Chanteperdrix

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=4C7B76A4.1030801@domain.hid \
    --to=jan.kiszka@domain.hid \
    --cc=rpm@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.