lkml.org 
[lkml]   [2011]   [May]   [26]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [BUG] "sched: Remove rq->lock from the first half of ttwu()" locks up on ARM
From
Date
On Thu, 2011-05-26 at 13:31 +0100, Russell King - ARM Linux wrote:
> On Thu, May 26, 2011 at 02:26:23PM +0200, Ingo Molnar wrote:
> >
> > * Peter Zijlstra <peterz@infradead.org> wrote:
> >
> > > Sort this by reverting to the old behaviour for this situation and
> > > perform a full remote wake-up.
> >
> > Btw., ARM should consider switching most of its subarchitectures to
> > !__ARCH_WANT_INTERRUPTS_ON_CTXSW - enabling irqs during context
> > switches is silly and now expensive as well.
>
> Not going to happen. The reason we do it is because most of the CPUs
> have to (slowly) flush their caches during switch_mm(), and to have
> IRQs off over the cache flush means that we lose IRQs.
>
> So it's not silly at all, bit a technical requirement imposed by the
> cache architecture.
>
> If it's become expensive through development, it suggests that the
> development did not take account of the issues we have on ARM.

Its not more expensive than it was before this patch series, and the
case in question is relatively rare (guesstimate, lacking measurements)
so ARM should benefit from most of the optimization provided.




\
 
 \ /
  Last update: 2011-05-26 14:41    [W:0.082 / U:2.736 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site