public inbox for linux-m68k@lists.linux-m68k.org
 help / color / mirror / Atom feed
* coldfire v4e and CONFIG_PREEMPT support
@ 2012-01-22  5:51 Lars Michael
  2012-01-24  5:32 ` Greg Ungerer
  0 siblings, 1 reply; 2+ messages in thread
From: Lars Michael @ 2012-01-22  5:51 UTC (permalink / raw)
  To: linux-m68k

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?

Thanks and regards
Lars

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: coldfire v4e and CONFIG_PREEMPT support
  2012-01-22  5:51 coldfire v4e and CONFIG_PREEMPT support Lars Michael
@ 2012-01-24  5:32 ` Greg Ungerer
  0 siblings, 0 replies; 2+ messages in thread
From: Greg Ungerer @ 2012-01-24  5:32 UTC (permalink / raw)
  To: Lars Michael; +Cc: linux-m68k

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2012-01-24  5:32 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-01-22  5:51 coldfire v4e and CONFIG_PREEMPT support Lars Michael
2012-01-24  5:32 ` Greg Ungerer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox