[PATCH v4 2/2] ARM: vfp: clear fpscr length and stride bits on entry to sig handler

Will Deacon will.deacon at arm.com
Mon May 14 13:57:29 EDT 2012


On Mon, May 14, 2012 at 06:50:44PM +0100, Jon Medhurst (Tixy) wrote:
> On Mon, 2012-05-14 at 18:37 +0100, Will Deacon wrote:
> > You're right, in the lazy case (i.e. SMP) we update the hwstate on
> > context-switch rather than on the fault. Your quick fix looks good to me
> > (that is, unconditionally flushing the state after handling a signal). I was
> > initially worried that the added flushing would cause a performance hit on
> > the usual path, where VFP is not used in the handler, however since we flush
> > before the signal handler, it really won't make a lot of difference.
> > 
> > I took the liberty of writing a commit message, so can I add your S-o-B to
> > this please (I wasn't sure which email address to use)?
> 
> Thanks, it's the day job, so...
> 
> Signed-off-by: Jon Medhurst <tixy at linaro.org>

Cheers Jon, I'll stick this in the patch system tomorrow. If it doesn't make
the final cut, I'll retrospectively send it to stable when they move to
3.4.

Will



More information about the linux-arm-kernel mailing list