Re: While(1) in kernel space

2008-07-08 Thread Paolo Doz
Thanks for the infos, I'll try kernel thread or timer/softirq in the next days. I'll let you know which of them fit my problems. I actually have about +/- 1msec of freedom (but still require more investigation). Paolo On Tue, Jul 8, 2008 at 4:47 PM, Grant Likely <[EMAIL PROTECTED]> wrote: > On

Re: While(1) in kernel space

2008-07-08 Thread Chris Friesen
Paolo Doz wrote: Hi folks, I'm developing a custom SPI driver (char device) on a MPC5200b, the microcontroller linked as slave implements a protocol that must follow strict timing constraints. I need to receive and send messages every 6msec. What are your timing requirements? How much over/

Re: While(1) in kernel space

2008-07-08 Thread Grant Likely
On Tue, Jul 8, 2008 at 8:45 AM, Arnd Bergmann <[EMAIL PROTECTED]> wrote: > On Tuesday 08 July 2008, Grant Likely wrote: > >> >> You can use a kernel thread. >> >> I'm not sure how accurate this is, but here is some information about them: >> >> http://www.linuxquestions.org/linux/articles/Technical

Re: While(1) in kernel space

2008-07-08 Thread Arnd Bergmann
On Tuesday 08 July 2008, Grant Likely wrote: > > You can use a kernel thread. > > I'm not sure how accurate this is, but here is some information about them: > > http://www.linuxquestions.org/linux/articles/Technical/Linux_Kernel_Thread Not accurate at all. New code should use kthread_create,

Re: While(1) in kernel space

2008-07-08 Thread Grant Likely
On Tue, Jul 8, 2008 at 1:55 AM, Paolo Doz <[EMAIL PROTECTED]> wrote: > Hi folks, > I'm developing a custom SPI driver (char device) on a MPC5200b, the > microcontroller linked as slave implements a protocol that must follow > strict timing constraints. I need to receive and send messages every 6mse

While(1) in kernel space

2008-07-08 Thread Paolo Doz
Hi folks, I'm developing a custom SPI driver (char device) on a MPC5200b, the microcontroller linked as slave implements a protocol that must follow strict timing constraints. I need to receive and send messages every 6msec. Actually there is a user space program that synchronizes the two units, bu