x86, cpufeature: Fix cpuid leaf 7 feature detection
authorFenghua Yu <fenghua.yu@intel.com>
Tue, 17 May 2011 19:33:26 +0000 (12:33 -0700)
committerSteve Conklin <sconklin@canonical.com>
Fri, 15 Jul 2011 17:20:48 +0000 (12:20 -0500)
commit4d0d61b3e47f6e1389ba030d47f132c4e5a86ff8
tree6257c7b417545fd14d05a11b59263ec08b4a8dbf
parenta750ea564b14735b436f4287ea90f48cedc69669
x86, cpufeature: Fix cpuid leaf 7 feature detection

BugLink: http://bugs.launchpad.net/bugs/793702

commit 2494b030ba9334c7dd7df9b9f7abe4eacc950ec5 upstream.

CPUID leaf 7, subleaf 0 returns the maximum subleaf in EAX, not the
number of subleaves.  Since so far only subleaf 0 is defined (and only
the EBX bitfield) we do not need to qualify the test.

Signed-off-by: Fenghua Yu <fenghua.yu@intel.com>
Link: http://lkml.kernel.org/r/1305660806-17519-1-git-send-email-fenghua.yu@intel.com
Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Signed-off-by: Tim Gardner <tim.gardner@canonical.com>
arch/x86/kernel/cpu/common.c