From: Neri Marschik <n.marschik@domain.hid>
To: xenomai@xenomai.org
Subject: [Xenomai-core] __xnpod_schedule not getting called
Date: Wed, 18 Jan 2012 13:33:09 +0100 [thread overview]
Message-ID: <1326889989.3822.8.camel@domain.hid> (raw)
Hi there Xenomai community,
I am implementing a new scheduler for some project and came up with a
question. Maybe it's a beginners question based on a misunderstanding.
If I don't have a periodic task my "pick" function is not getting
called.
I put some prints into the code to see what happens:
VirtualBox kernel: [ 1052.038250] __xnpod_schedule
VirtualBox kernel: [ 1052.038252] xnsched_pick_next
VirtualBox kernel: [ 1052.038253] __xnsched_anytime_exception_pick()
VirtualBox kernel: [ 1052.038255] __xnsched_anytime_main_pick()
VirtualBox kernel: [ 1052.038257] __xnsched_idle_pick()
VirtualBox kernel: [ 1052.038690] __xnpod_schedule
This is normal behavior which repeats forever as long as there is some
periodic task running.
If I stop this periodic task my non-periodic tasks which should be run
only once are never run because the pick() function is not called
again.
I noticed that __xnpod_schedule doesn't get called because of this:
if (testbits(sched->status,
XNKCOUT|XNINIRQ|XNSWLOCK|XNRESCHED) != XNRESCHED)
return;
in: pod.h static inline void xnpod_schedule(void)
I'd appreciate if anyone has an idea about that.
Btw. running version 2.5.5.2
Best regards
next reply other threads:[~2012-01-18 12:33 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-01-18 12:33 Neri Marschik [this message]
2012-01-19 20:37 ` [Xenomai-core] __xnpod_schedule not getting called 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=1326889989.3822.8.camel@domain.hid \
--to=n.marschik@domain.hid \
--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.