All of lore.kernel.org
 help / color / mirror / Atom feed
From: Johann Obermayr <johann.obermayr@sigmatek.at>
To: "Xenomai@xenomai.org" <Xenomai@xenomai.org>
Subject: [Xenomai] rtdm_nrtsig_pend FAQ
Date: Wed, 12 Nov 2014 09:47:45 +0100	[thread overview]
Message-ID: <54631EB1.1050900@sigmatek.at> (raw)

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 ?

Best Regards
   Johann



             reply	other threads:[~2014-11-12  8:47 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-11-12  8:47 Johann Obermayr [this message]
2014-11-12  9:10 ` [Xenomai] rtdm_nrtsig_pend FAQ Philippe Gerum
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=54631EB1.1050900@sigmatek.at \
    --to=johann.obermayr@sigmatek.at \
    --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.