Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752971Ab2BTBLg (ORCPT ); Sun, 19 Feb 2012 20:11:36 -0500 Received: from mail-ww0-f42.google.com ([74.125.82.42]:34329 "EHLO mail-ww0-f42.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752602Ab2BTBLd (ORCPT ); Sun, 19 Feb 2012 20:11:33 -0500 Authentication-Results: mr.google.com; spf=pass (google.com: domain of linus971@gmail.com designates 10.180.97.196 as permitted sender) smtp.mail=linus971@gmail.com; dkim=pass header.i=linus971@gmail.com MIME-Version: 1.0 In-Reply-To: References: <12996.1329699216@neuling.org> From: Linus Torvalds Date: Sun, 19 Feb 2012 17:11:12 -0800 X-Google-Sender-Auth: nWra9r3gfCZFWHzpM5f2luDV0Ic Message-ID: Subject: Re: [PATCH 0/2] More i387 state save/restore work To: Michael Neuling Cc: Thomas Gleixner , Ingo Molnar , "H. Peter Anvin" , x86@kernel.org, Linux Kernel Mailing List , benh@kernel.crashing.org, anton@samba.org 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: 955 Lines: 20 Oh, and final comment - looking at the thing you pointed at, it looks much more adventurous than my x86 FP state thing. I always save things unconditionally, so that I don't have to do the IPI or just in general care about the "oops, now I want things in memory, not in some random CPU FP state". So mine is just a "writeback cache", and only optimizes the reading things back: there is never any dirty state in the CPU except when the process is actively using it. That obviously does mean that I only optimize away the restore side, not the save side. But it's *way* simpler, and considering that I just spent almost a week trying to figure out FP state save bugs, simple is good. 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/