From: Greg Ungerer <gerg@snapgear.com>
To: Lars Michael <lh_post@yahoo.com>
Cc: linux-m68k@lists.linux-m68k.org
Subject: Re: coldfire v4e and CONFIG_PREEMPT support
Date: Tue, 24 Jan 2012 15:32:13 +1000 [thread overview]
Message-ID: <4F1E425D.7090000@snapgear.com> (raw)
In-Reply-To: <1327211472.37668.YahooMailClassic@web160605.mail.bf1.yahoo.com>
Hi Lars,
On 22/01/12 15:51, Lars Michael wrote:
> Hi Geert,
>
> On Fri, Jan 20, 2012 at 14:59, Geert<geert@xxxxxxxxxxxxxx> wrote:
>>> On Fri, Jan 20, 2012 at 14:47, Jensen, Bjarne<bkj@xxxxxxx> wrote:
>>> We are developing an application on a board with a Coldfire v4e processor>>(m54418) and are wondering if it will be possible to make the kernel
>>> preemptive and how much effort it will take. Has anyone tried it with this>>processor?
>
>> Generic preempt support relies on the spinlocks that were introduced when
>> adding SMP support. So far we never had SMP support for m68k, hence we
>> didn't do a proper conversion from disable_irq()/enable_irq() to spinlocks,
>> and kept on using the simpler local_irq_*() ops in arch/m68k and in several
>> drivers. These have to be fixed first.
>
> Bjarne and I work together, our embedded system (mcf54418, kernel 2.6.29) runs a real-time critical app. and we have found that we are not being scheduled for longer periods of time when the kernel is busy. We believe the preempt option is the solution. Are there any current projects or plans to support preempt for m68k? This is a very high priority for us and we can do some coding, and certainly testing, but we need some expert guidance. Would you be interested in helping and seeing preempt supported on this arch?
A few years back someone contributed PREEMPT code for ColdFire. I can't
recall who it was right now, but it is in mainline. grep under
arch/m68k for PREEMPT and you will see the few bits added.
Worth having a look at first.
Regards
Greg
------------------------------------------------------------------------
Greg Ungerer -- Principal Engineer EMAIL: gerg@snapgear.com
SnapGear Group, McAfee PHONE: +61 7 3435 2888
8 Gardner Close FAX: +61 7 3217 5323
Milton, QLD, 4064, Australia WEB: http://www.SnapGear.com
prev parent reply other threads:[~2012-01-24 5:32 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-01-22 5:51 coldfire v4e and CONFIG_PREEMPT support Lars Michael
2012-01-24 5:32 ` Greg Ungerer [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=4F1E425D.7090000@snapgear.com \
--to=gerg@snapgear.com \
--cc=lh_post@yahoo.com \
--cc=linux-m68k@lists.linux-m68k.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox