Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933008Ab0GTWpe (ORCPT ); Tue, 20 Jul 2010 18:45:34 -0400 Received: from terminus.zytor.com ([198.137.202.10]:60628 "EHLO mail.zytor.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932949Ab0GTWpd (ORCPT ); Tue, 20 Jul 2010 18:45:33 -0400 Message-ID: <4C4626FD.7010702@zytor.com> Date: Tue, 20 Jul 2010 15:45:17 -0700 From: "H. Peter Anvin" User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.10) Gecko/20100621 Fedora/3.0.5-1.fc13 Thunderbird/3.0.5 MIME-Version: 1.0 To: Suresh Siddha CC: Robert Richter , Ingo Molnar , LKML Subject: Re: [PATCH 09/10] x86, xsave: check cpuid level for XSTATE_CPUID (0x0d) References: <1279651857-24639-1-git-send-email-robert.richter@amd.com> <1279651857-24639-10-git-send-email-robert.richter@amd.com> <1279664764.2899.54.camel@sbs-t61.sc.intel.com> In-Reply-To: <1279664764.2899.54.camel@sbs-t61.sc.intel.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 838 Lines: 25 On 07/20/2010 03:26 PM, Suresh Siddha wrote: > On Tue, 2010-07-20 at 11:50 -0700, Robert Richter wrote: >> The patch adds a check that tests if XSTATE_CPUID exists. >> >> Signed-off-by: Robert Richter > > While we are at this, can you please rename the other hardcoded 0xd's > with XSTATE_CPUID in xsave.c? > >> + struct cpuinfo_x86 *c = &cpu_data(0); > > Can we use boot_cpu_data instead of cpu_data(0). > Not the same thing! boot_cpu_data is the intersection of all the boot CPU features (and yes, it's misnamed); cpu_data(0) is the CPU data for CPU 0. -hpa -- 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/