Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751134AbaBBB54 (ORCPT ); Sat, 1 Feb 2014 20:57:56 -0500 Received: from terminus.zytor.com ([198.137.202.10]:37602 "EHLO mail.zytor.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750857AbaBBB5y (ORCPT ); Sat, 1 Feb 2014 20:57:54 -0500 Message-ID: <52EDA60A.50906@zytor.com> Date: Sat, 01 Feb 2014 17:57:30 -0800 From: "H. Peter Anvin" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.2.0 MIME-Version: 1.0 To: Linus Torvalds , Suresh Siddha CC: Nate Eldredge , Thomas Gleixner , Ingo Molnar , the arch/x86 maintainers , stable , Linux Kernel Mailing List , Maarten Baert , Jan Kara , George Spelvin , Pekka Riikonen Subject: Re: [PATCH] Make math_state_restore() save and restore the interrupt flag References: <52ED9EA9.7080009@zytor.com> In-Reply-To: X-Enigmail-Version: 1.6 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 02/01/2014 05:51 PM, Linus Torvalds wrote: > On Sat, Feb 1, 2014 at 5:47 PM, Suresh Siddha wrote: >> >> So if the restore failed, we should do something like drop_init_fpu(), >> which will restore init-state to the registers. >> >> for eager-fpu() paths we don't use clts() stts() etc. > > Uhhuh. Ok. > > Why do we do that, btw? I think it would make much more sense to just > do what I *thought* we did, and just make it a context-switch-time > optimization ("let's always switch FP state"), not make it a huge > semantic difference. > Twiddling CR0.TS is pretty slow if we're not taking advantage of it. -hpa -- 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/