All of lore.kernel.org
 help / color / mirror / Atom feed
From: Philippe Gerum <rpm@xenomai.org>
To: johann.obermayr@sigmatek.at, "Xenomai@xenomai.org" <Xenomai@xenomai.org>
Subject: Re: [Xenomai] rtdm_nrtsig_pend FAQ
Date: Wed, 12 Nov 2014 10:10:17 +0100	[thread overview]
Message-ID: <546323F9.9040608@xenomai.org> (raw)
In-Reply-To: <54631EB1.1050900@sigmatek.at>

On 11/12/2014 09:47 AM, Johann Obermayr wrote:
> Hello,
> 
> we use rtdm_nrtsig_pend follow.
> 
> static rtdm_nrtsig_t wait_domain_nrt;
> static DECLARE_WAIT_QUEUE_HEAD(wait_domain_wq);
> 
> void period_update()
> {
>         wait_domain_pend_count++;
>         rtdm_nrtsig_pend(&wait_domain_nrt);
> }
> 
> static void wait_domain_nrt_handler(rtdm_nrtsig_t nrt_sig, void *arg)
> {
>     wait_domain_call_count++;
>     //wakeup wait_domain
>     wait_domain_wakeup = 1;
>     wake_up_interruptible(&wait_domain_wq);
> }
> 
> 
> period_update is called every millisecond.
> this is on imx6 hardware with kernel 3.0.x and xenomai 2.6.2.1.
> 
> Why wait_domain_call_count can be smaller that wait_domain_pend_count.
> The difference between the counters is growing.
> 
> Why ?
> 

nrt signals are based on I-pipe virtual irqs, which do not pile up:
there is a single signal pending until the irq can be delivered to the
handler, regardless of how many times it has been triggered.

-- 
Philippe.


  reply	other threads:[~2014-11-12  9:10 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-11-12  8:47 [Xenomai] rtdm_nrtsig_pend FAQ Johann Obermayr
2014-11-12  9:10 ` Philippe Gerum [this message]
2014-11-12  9:20   ` Johann Obermayr
2014-11-12  9:50     ` Philippe Gerum
2014-11-12 10:53       ` Johann Obermayr
2014-11-12 11:30         ` Philippe Gerum
2014-11-12 16:44 ` Gilles Chanteperdrix
2014-11-13 16:30   ` Johann Obermayr
2014-11-13 16:33     ` Gilles Chanteperdrix
2014-11-14  9:53       ` Johann Obermayr
2014-11-14 10:20         ` Gilles Chanteperdrix
2014-11-14 12:37           ` Johann Obermayr
2014-11-14 12:47             ` Gilles Chanteperdrix
2014-11-14 13:05             ` Gilles Chanteperdrix
2014-11-14 13:45             ` 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=546323F9.9040608@xenomai.org \
    --to=rpm@xenomai.org \
    --cc=Xenomai@xenomai.org \
    --cc=johann.obermayr@sigmatek.at \
    /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.