From: "Chris Friesen" <cfriesen@nortel•com>
To: Paolo Doz <paolo.doz@gmail•com>
Cc: linuxppc-dev@ozlabs•org
Subject: Re: While(1) in kernel space
Date: Tue, 08 Jul 2008 08:44:37 -0600 [thread overview]
Message-ID: <48737D55.9000905@nortel.com> (raw)
In-Reply-To: <5468b7f30807080055p69571979i9a565653e523c2c0@mail.gmail.com>
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/under 6ms can the
protocol handle?
Kernel threads might work, but then you're at the mercy of the
scheduler. You'd probably be better off using a timer or softirq.
If the latency requirements are really strict, your best bet would
probably be to use the -rt patches for the kernel. That requires
building a custom kernel though.
Chris
prev parent reply other threads:[~2008-07-08 14:54 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-07-08 7:55 While(1) in kernel space Paolo Doz
2008-07-08 14:19 ` Grant Likely
2008-07-08 14:45 ` Arnd Bergmann
2008-07-08 14:47 ` Grant Likely
2008-07-08 20:53 ` Paolo Doz
2008-07-08 14:44 ` Chris Friesen [this message]
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=48737D55.9000905@nortel.com \
--to=cfriesen@nortel$(echo .)com \
--cc=linuxppc-dev@ozlabs$(echo .)org \
--cc=paolo.doz@gmail$(echo .)com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox