Re: [PATCH v2 3/3] i387: support lazy restore of FPU state

From: Linus Torvalds
Date: Tue Feb 21 2012 - 16:57:50 EST


On Tue, Feb 21, 2012 at 1:54 PM, Suresh Siddha
<suresh.b.siddha@xxxxxxxxx> wrote:
>
> Reviewing this code, I think we need to set the 'last_cpu' to an invalid
> number in the fpu_alloc too. Appended is the patch.

I cleared fpu_counter in copy_thread() instead.

Doing this in fpu_alloc() isn't necessarily a bad idea, though.

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/