From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S934900AbZDJCgZ (ORCPT ); Thu, 9 Apr 2009 22:36:25 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S934012AbZDJCfI (ORCPT ); Thu, 9 Apr 2009 22:35:08 -0400 Received: from fg-out-1718.google.com ([72.14.220.155]:51909 "EHLO fg-out-1718.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933997AbZDJCfG (ORCPT ); Thu, 9 Apr 2009 22:35:06 -0400 DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=date:from:to:cc:subject:message-id:mime-version:content-type :content-disposition:user-agent; b=b2Iga1bowJJJ0vLpao1Ot2nsgvx7hTvCI8xsAowk181RvrcDlAUsQdbEljx+BjRH+f AcZSSj6gzZgcRq7FdP3zjG2aAQZFafuL8VjURlfGVOOwt49rtogcUBvs2A59cIA8dfYs Gv2RZEjHuYNfqF4byvWvY0f98wQjojky9Xpsg= Date: Fri, 10 Apr 2009 06:35:08 +0400 From: Alexey Dobriyan To: akpm@linux-foundation.org, containers@lists.linux-foundation.org Cc: xemul@parallels.com, serue@us.ibm.com, dave@linux.vnet.ibm.com, mingo@elte.hu, orenl@cs.columbia.edu, hch@infradead.org, torvalds@linux-foundation.org, linux-kernel@vger.kernel.org Subject: [PATCH 08/30] i386: ifdef out struct thread_struct::fs Message-ID: <20090410023508.GI27788@x200.localdomain> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.18 (2008-05-17) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org After commit 464d1a78fbf8cf6c7fd970e7b3e2db50a320ce28 aka "[PATCH] i386: Convert i386 PDA code to use %fs" %fs saved during context switch moved from thread_struct to pt_regs. Ifdef out it on i386. I don't understand why .fs (OK, .gs first) initializer was added, kernel clearly stopped touching it after the patch. Signed-off-by: Alexey Dobriyan --- arch/x86/include/asm/processor.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) --- a/arch/x86/include/asm/processor.h +++ b/arch/x86/include/asm/processor.h @@ -422,7 +422,9 @@ struct thread_struct { unsigned short gsindex; #endif unsigned long ip; +#ifdef CONFIG_X86_64 unsigned long fs; +#endif unsigned long gs; /* Hardware debugging registers: */ unsigned long debugreg0; @@ -868,7 +870,6 @@ static inline void spin_lock_prefetch(const void *x) .vm86_info = NULL, \ .sysenter_cs = __KERNEL_CS, \ .io_bitmap_ptr = NULL, \ - .fs = __KERNEL_PERCPU, \ } /*