Re: [patch] x32, fpu: fix DNA exception during check_fpu()

From: Linus Torvalds
Date: Thu Jun 30 2011 - 23:47:09 EST


On Thu, Jun 30, 2011 at 5:19 PM, Suresh Siddha
<suresh.b.siddha@xxxxxxxxx> wrote:
>
> Before check_fpu() is called, we have cr0.TS bit set and hence the floating
> point code to check the FDIV bug was generating a DNA exception.
>
> Use kernel_fpu_begin()/kernel_fpu_end() around the floating point
> code to avoid this unnecessary device not available exception during
> boot.

Looks sane to me. I didn't think we were supposed to set the TS bit
this early, but if we do, Ack.

Linus
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/