From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751648AbbH1FGg (ORCPT ); Fri, 28 Aug 2015 01:06:36 -0400 Received: from mail-wi0-f177.google.com ([209.85.212.177]:37429 "EHLO mail-wi0-f177.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751367AbbH1FGf (ORCPT ); Fri, 28 Aug 2015 01:06:35 -0400 Date: Fri, 28 Aug 2015 07:06:31 +0200 From: Ingo Molnar To: Dave Hansen 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 Subject: Re: [PATCH 04/11] x86, fpu: remove xfeature_nr Message-ID: <20150828050631.GE25556@gmail.com> References: <20150827171102.1BDF27E5@viggo.jf.intel.com> <20150827171106.7AFF8494@viggo.jf.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20150827171106.7AFF8494@viggo.jf.intel.com> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org * Dave Hansen wrote: > > From: Dave Hansen > > xfeature_nr ended up being initialized too late for me to > use it in the "xsave size sanity check" patch which is > later in the series. I tried to move around its initialization > but realized that it was just as easy to get rid of it. > > We only have 9 XFEATURES. Instead of dynamically calculating > and storing the last feature, just use the compile-time max: > XFEATURES_NR_MAX. Note that even with 'xfeatures_nr' we can > had "holes" in the xfeatures_mask that we had to deal with. s/we can had/we can have Thanks, Ingo