Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752381Ab2BUCrL (ORCPT ); Mon, 20 Feb 2012 21:47:11 -0500 Received: from mailout1.samsung.com ([203.254.224.24]:49172 "EHLO mailout1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751869Ab2BUCrJ (ORCPT ); Mon, 20 Feb 2012 21:47:09 -0500 X-AuditID: cbfee610-b7b53ae000003b1c-cd-4f4300124b32 Date: Tue, 21 Feb 2012 02:23:14 +0000 (GMT) From: Jongman Heo Subject: Re: Re: [PATCH v2 3/3] i387: support lazy restore of FPU state To: Linus Torvalds , Josh Boyer Cc: Thomas Gleixner , Ingo Molnar , "H. Peter Anvin" , "x86@kernel.org" , Linux Kernel Mailing List Reply-to: jongman.heo@samsung.com MIME-version: 1.0 X-MTR: 20120221022114248@jongman.heo Msgkey: 20120221022114248@jongman.heo X-EPLocale: ko_KR.euc-kr X-Priority: 3 X-EPWebmail-Msg-Type: personal X-EPWebmail-Reply-Demand: 0 X-EPApproval-Locale: X-EPHeader: ML X-EPTrCode: X-EPTrName: X-MLAttribute: X-RootMTR: 20120221022114248@jongman.heo X-ParentMTR: Content-type: text/plain; charset=euc-kr MIME-version: 1.0 Message-id: <29057119.98761329790991208.JavaMail.weblogic@epml01> X-Brightmail-Tracker: AAAAAA== Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from base64 to 8bit by nfs id q1L2lJ0b015862 Content-Length: 1380 Lines: 35 > Sender : Linus Torvalds > Date : 2012-02-21 11:18 (GMT+09:00) > Title : Re: [PATCH v2 3/3] i387: support lazy restore of FPU state > > On Mon, Feb 20, 2012 at 6:10 PM, Linus Torvalds > wrote: > > > > The attached trivial patch fixes it, I bet. > > Actually, it doesn't fix it on x86-32, because we actually have an > #ifdef CONFIG_X86_64 around the "current_task" definition due to > pointless differences in how we do that on x86-64 and x86-32. > > So much for the "common" part of "arch/x86/kernel/cpu/common.c" > > > Although I do wonder if we should just make kernel_fpu_begin() be a > > real function instead of inlining it. I'm not sure it makes sense to > > inline that thing, and it might be better to export that one instead. > > I do think that would be better in the long run, but for now here's an > updated "trivial" patch to fix it. > > I want the fpu_owner_task to be declared next to the cache-hot > task-switching stuff, and since they are different on 32-bit and > 64-bit (for no really good reason), that gets duplicated too. Sad. > > Linus > > Linus Yeah, this patch fixes my x86-32 build. Thanks, Jongman Heo.????{.n?+???????+%?????ݶ??w??{.n?+????{??G?????{ay?ʇڙ?,j??f???h?????????z_??(?階?ݢj"???m??????G????????????&???~???iO???z??v?^?m???? ????????I?