Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755728Ab2BUV5x (ORCPT ); Tue, 21 Feb 2012 16:57:53 -0500 Received: from mail-ww0-f44.google.com ([74.125.82.44]:54274 "EHLO mail-ww0-f44.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752249Ab2BUV5w (ORCPT ); Tue, 21 Feb 2012 16:57:52 -0500 Authentication-Results: mr.google.com; spf=pass (google.com: domain of linus971@gmail.com designates 10.180.8.164 as permitted sender) smtp.mail=linus971@gmail.com; dkim=pass header.i=linus971@gmail.com MIME-Version: 1.0 In-Reply-To: <1329861273.29790.261.camel@sbsiddha-desk.sc.intel.com> References: <1329861273.29790.261.camel@sbsiddha-desk.sc.intel.com> From: Linus Torvalds Date: Tue, 21 Feb 2012 13:57:31 -0800 X-Google-Sender-Auth: JeAgekTqdJRAaLXr036R3oXlmZc Message-ID: Subject: Re: [PATCH v2 3/3] i387: support lazy restore of FPU state To: Suresh Siddha Cc: Thomas Gleixner , Ingo Molnar , "H. Peter Anvin" , x86@kernel.org, Linux Kernel Mailing List Content-Type: text/plain; charset=ISO-8859-1 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 597 Lines: 16 On Tue, Feb 21, 2012 at 1:54 PM, Suresh Siddha 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@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/