Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932534AbWKDAud (ORCPT ); Fri, 3 Nov 2006 19:50:33 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S932535AbWKDAud (ORCPT ); Fri, 3 Nov 2006 19:50:33 -0500 Received: from smtp.osdl.org ([65.172.181.4]:22144 "EHLO smtp.osdl.org") by vger.kernel.org with ESMTP id S932534AbWKDAuc (ORCPT ); Fri, 3 Nov 2006 19:50:32 -0500 Date: Fri, 3 Nov 2006 16:46:25 -0800 (PST) From: Linus Torvalds To: Chuck Ebbert <76306.1226@compuserve.com> cc: linux-kernel , Andi Kleen , Zachary Amsden Subject: Re: [rfc patch] i386: don't save eflags on task switch In-Reply-To: <200611031902_MC3-1-D042-CA1F@compuserve.com> Message-ID: References: <200611031902_MC3-1-D042-CA1F@compuserve.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 648 Lines: 20 On Fri, 3 Nov 2006, Chuck Ebbert wrote: > > There is no real need to save eflags in switch_to(). Instead, > we can keep a constant value in the thread_struct and always > restore that. I don't really see the point. The "pushfl" isn't the expensive part, and it gives sane and expected semantics. The "popfl" is the expensive part, and that's the thing that can't really even be removed. 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/