Blame SOURCES/glibc-rh607010.patch

b9ba6d
2010-09-07  H.J. Lu  <hongjiu.lu@intel.com>
b9ba6d
b9ba6d
	* sysdeps/x86_64/cacheinfo.c (init_cacheinfo): Round cache sizes
b9ba6d
	up to multiple of 256 bytes.
b9ba6d
b9ba6d
Index: glibc-2.12-2-gc4ccff1/sysdeps/x86_64/cacheinfo.c
b9ba6d
===================================================================
b9ba6d
--- glibc-2.12-2-gc4ccff1.orig/sysdeps/x86_64/cacheinfo.c
b9ba6d
+++ glibc-2.12-2-gc4ccff1/sysdeps/x86_64/cacheinfo.c
b9ba6d
@@ -661,12 +661,16 @@ init_cacheinfo (void)
b9ba6d
 
b9ba6d
   if (data > 0)
b9ba6d
     {
b9ba6d
+      /* Round data cache size up to multiple of 256 bytes.  */
b9ba6d
+      data = (data + 255) & ~255L;
b9ba6d
       __x86_64_data_cache_size_half = data / 2;
b9ba6d
       __x86_64_data_cache_size = data;
b9ba6d
     }
b9ba6d
 
b9ba6d
   if (shared > 0)
b9ba6d
     {
b9ba6d
+      /* Round shared cache size up to multiple of 256 bytes.  */
b9ba6d
+      shared = (shared + 255) & ~255L;
b9ba6d
       __x86_64_shared_cache_size_half = shared / 2;
b9ba6d
       __x86_64_shared_cache_size = shared;
b9ba6d
     }