diff options
author | Florian Weimer <fweimer@redhat.com> | 2021-02-22 17:36:03 +0100 |
---|---|---|
committer | Florian Weimer <fweimer@redhat.com> | 2021-02-22 17:36:03 +0100 |
commit | feb741bb81d2c7adc222c574158128bf2c48ca01 (patch) | |
tree | fcb9b7bb935cf4b64b7166ae357c343e27012cad /sysdeps/x86 | |
parent | 8a7b4dc6d005e2878f1afe6ba1a2bbce14f86a55 (diff) | |
download | glibc-feb741bb81d2c7adc222c574158128bf2c48ca01.tar.gz glibc-feb741bb81d2c7adc222c574158128bf2c48ca01.tar.xz glibc-feb741bb81d2c7adc222c574158128bf2c48ca01.zip |
x86: Remove unused variables for raw cache sizes from cacheinfo.h
Diffstat (limited to 'sysdeps/x86')
-rw-r--r-- | sysdeps/x86/cacheinfo.h | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/sysdeps/x86/cacheinfo.h b/sysdeps/x86/cacheinfo.h index 0f0ca7c08c..eba8dbc4a6 100644 --- a/sysdeps/x86/cacheinfo.h +++ b/sysdeps/x86/cacheinfo.h @@ -32,18 +32,10 @@ L1 size, rounded to multiple of 256 bytes. */ long int __x86_data_cache_size_half attribute_hidden = 32 * 1024 / 2; long int __x86_data_cache_size attribute_hidden = 32 * 1024; -/* Similar to __x86_data_cache_size_half, but not rounded. */ -long int __x86_raw_data_cache_size_half attribute_hidden = 32 * 1024 / 2; -/* Similar to __x86_data_cache_size, but not rounded. */ -long int __x86_raw_data_cache_size attribute_hidden = 32 * 1024; /* Shared cache size for use in memory and string routines, typically L2 or L3 size, rounded to multiple of 256 bytes. */ long int __x86_shared_cache_size_half attribute_hidden = 1024 * 1024 / 2; long int __x86_shared_cache_size attribute_hidden = 1024 * 1024; -/* Similar to __x86_shared_cache_size_half, but not rounded. */ -long int __x86_raw_shared_cache_size_half attribute_hidden = 1024 * 1024 / 2; -/* Similar to __x86_shared_cache_size, but not rounded. */ -long int __x86_raw_shared_cache_size attribute_hidden = 1024 * 1024; /* Threshold to use non temporal store. */ long int __x86_shared_non_temporal_threshold attribute_hidden; @@ -62,16 +54,12 @@ init_cacheinfo (void) { const struct cpu_features *cpu_features = __get_cpu_features (); long int data = cpu_features->data_cache_size; - __x86_raw_data_cache_size_half = data / 2; - __x86_raw_data_cache_size = data; /* Round data cache size to multiple of 256 bytes. */ data = data & ~255L; __x86_data_cache_size_half = data / 2; __x86_data_cache_size = data; long int shared = cpu_features->shared_cache_size; - __x86_raw_shared_cache_size_half = shared / 2; - __x86_raw_shared_cache_size = shared; /* Round shared cache size to multiple of 256 bytes. */ shared = shared & ~255L; __x86_shared_cache_size_half = shared / 2; |