1 2010-09-07 H.J. Lu <hongjiu.lu@intel.com>
3 * sysdeps/x86_64/cacheinfo.c (init_cacheinfo): Round cache sizes
4 up to multiple of 256 bytes.
6 Index: glibc-2.12-2-gc4ccff1/sysdeps/x86_64/cacheinfo.c
7 ===================================================================
8 --- glibc-2.12-2-gc4ccff1.orig/sysdeps/x86_64/cacheinfo.c
9 +++ glibc-2.12-2-gc4ccff1/sysdeps/x86_64/cacheinfo.c
10 @@ -661,12 +661,16 @@ init_cacheinfo (void)
14 + /* Round data cache size up to multiple of 256 bytes. */
15 + data = (data + 255) & ~255L;
16 __x86_64_data_cache_size_half = data / 2;
17 __x86_64_data_cache_size = data;
22 + /* Round shared cache size up to multiple of 256 bytes. */
23 + shared = (shared + 255) & ~255L;
24 __x86_64_shared_cache_size_half = shared / 2;
25 __x86_64_shared_cache_size = shared;