Blame SOURCES/glibc-rh607010.patch

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