Skip to contentSkip to conversation

xenomai scheduler's ticks period

Xenomai-help Matthieu 2 participants 2 messages Jun 23, 2008

lore
Share & tools
lore

Matthieu

author
#0 lore raw

Hi

I would like to know if there is a sheduler per CPUs or one scheduler for all CPUs ? I understand that there is one sheduler per skin for all CPUs, so it's only to be sure...

Well, my application has two working mode. One with a PCI hardware that send an interrupt to tickAnnounce the Scheduler ; one with no hardware and something that will simulate this hardware interrupt (something like a periodic xenomai real-time task that send this same interrupt). So I need to use an interrupt to tickAnnounce vxworks scheduler. I think that I have to disabe the periodic tick (but I don't know how), and I need an interrupt handler that send a tickAnnounce. It is during the execution that the presence of the PCI hardware is tested and whether a hardware interrupt or software interrupt is used. Can somebody explain me if it's possible, and in that case, how can I disable the automatic vxworks tick ?

#1 lore raw
Quoted 5 lines · Matthieu

Hi

I would like to know if there is a sheduler per CPUs or one scheduler for all CPUs ? I understand that there is one sheduler per skin for all CPUs, so it's only to be sure...

One global scheduler, per-CPU scheduling runqueues, per-skin timing obtained through separate time bases, see /proc/xenomai/timebases. The reason why we have time bases is documented:
http://www.xenomai.org/documentation/branches/v2.4.x/html/api/group__timebase.html

Quoted 12 lines

Well, my application has two working mode. One with a PCI hardware that send an interrupt to tickAnnounce the Scheduler ; one with no hardware and something that will simulate this hardware interrupt (something like a periodic xenomai real-time task that send this same interrupt). So I need to use an interrupt to tickAnnounce vxworks scheduler. I think that I have to disabe the periodic tick (but I don't know how), and I need an interrupt handler that send a tickAnnounce. It is during the execution that the presence of the PCI hardware is tested and whether a hardware interrupt or software interrupt is used. Can somebody explain me if it's possible, and in that case, how can I disable the automatic vxworks tick ?

modprobe xeno_vxworks tick_arg=0

Quoted 7 lines

_______________________________________________
Xenomai-help mailing list
[email protected]
https://mail.gna.org/listinfo/xenomai-help

Signature · 1 line
Philippe.