Blame SOURCES/glibc-rh630801.patch

b40826
2010-05-26  H.J. Lu  <hongjiu.lu@intel.com>
b40826
b40826
	[BZ #11640]
b40826
	* sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
b40826
	Properly check family and model.
b40826
b40826
Index: glibc-2.12-2-gc4ccff1/sysdeps/x86_64/multiarch/init-arch.c
b40826
===================================================================
b40826
--- glibc-2.12-2-gc4ccff1.orig/sysdeps/x86_64/multiarch/init-arch.c
b40826
+++ glibc-2.12-2-gc4ccff1/sysdeps/x86_64/multiarch/init-arch.c
b40826
@@ -62,15 +62,15 @@ __init_cpu_features (void)
b40826
       unsigned int eax = __cpu_features.cpuid[COMMON_CPUID_INDEX_1].eax;
b40826
       unsigned int extended_family = (eax >> 20) & 0xff;
b40826
       unsigned int extended_model = (eax >> 12) & 0xf0;
b40826
-      if (__cpu_features.family == 0x0f)
b40826
+      if (family == 0x0f)
b40826
 	{
b40826
 	  family += extended_family;
b40826
 	  model += extended_model;
b40826
 	}
b40826
-      else if (__cpu_features.family == 0x06)
b40826
+      else if (family == 0x06)
b40826
 	{
b40826
 	  model += extended_model;
b40826
-	  switch (__cpu_features.model)
b40826
+	  switch (model)
b40826
 	    {
b40826
 	    case 0x1a:
b40826
 	    case 0x1e: