From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753464AbbH0RLI (ORCPT ); Thu, 27 Aug 2015 13:11:08 -0400 Received: from mga09.intel.com ([134.134.136.24]:18446 "EHLO mga09.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752611AbbH0RLF (ORCPT ); Thu, 27 Aug 2015 13:11:05 -0400 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.17,422,1437462000"; d="scan'208";a="633431970" Subject: [PATCH 01/11] x86, fpu: kill LWP support To: dave@sr71.net Cc: dave.hansen@linux.intel.com, mingo@redhat.com, x86@kernel.org, bp@alien8.de, fenghua.yu@intel.com, tim.c.chen@linux.intel.com, linux-kernel@vger.kernel.org From: Dave Hansen Date: Thu, 27 Aug 2015 10:11:02 -0700 References: <20150827171102.1BDF27E5@viggo.jf.intel.com> In-Reply-To: <20150827171102.1BDF27E5@viggo.jf.intel.com> Message-Id: <20150827171102.745D334C@viggo.jf.intel.com> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Dave Hansen LightWeight Profiling was evidently an AMD profiling feature that we never got around to implementing. Remove the references to it. This patch is a *bit* worrisome becuase it will implicitly cause 'struct xregs_state' to shrink. This effectively removes some unused padding that we had in there. It might expose other bugs. Signed-off-by: Dave Hansen Cc: Ingo Molnar Cc: x86@kernel.org Cc: Borislav Petkov Cc: Fenghua Yu Cc: Tim Chen Cc: linux-kernel@vger.kernel.org --- b/arch/x86/include/asm/fpu/types.h | 6 ------ 1 file changed, 6 deletions(-) diff -puN arch/x86/include/asm/fpu/types.h~axe-lwp arch/x86/include/asm/fpu/types.h --- a/arch/x86/include/asm/fpu/types.h~axe-lwp 2015-08-27 10:08:01.195617135 -0700 +++ b/arch/x86/include/asm/fpu/types.h 2015-08-27 10:08:01.198617272 -0700 @@ -132,11 +132,6 @@ struct ymmh_struct { u8 ymmh_space[256]; }; -/* We don't support LWP yet: */ -struct lwp_struct { - u8 reserved[128]; -}; - /* Intel MPX support: */ struct bndreg { u64 lower_bound; @@ -161,7 +156,6 @@ struct xstate_header { /* New processor state extensions should be added here: */ #define XSTATE_RESERVE (sizeof(struct ymmh_struct) + \ - sizeof(struct lwp_struct) + \ sizeof(struct mpx_struct) ) /* * This is our most modern FPU state format, as saved by the XSAVE _