From: Fenghua Yu Date: Tue, 17 May 2011 19:33:26 +0000 (-0700) Subject: x86, cpufeature: Fix cpuid leaf 7 feature detection X-Git-Tag: v2.6.39.1~150 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4d298dbad2464a45b55aac309ea82dfdfe4291f5;p=pandora-kernel.git x86, cpufeature: Fix cpuid leaf 7 feature detection 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 Link: http://lkml.kernel.org/r/1305660806-17519-1-git-send-email-fenghua.yu@intel.com Signed-off-by: H. Peter Anvin Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed