x86: Move x86 processor cache info to cpu_features
authorH.J. Lu <hjl.tools@gmail.com>
Fri, 18 Sep 2020 14:55:14 +0000 (07:55 -0700)
committerH.J. Lu <hjl.tools@gmail.com>
Thu, 14 Jan 2021 19:38:45 +0000 (11:38 -0800)
commit2d651eb9265d1366d7b9e881bfddd46db9c1ecc4
treee7ab45e6e14b7be7729b8ae06aa911f97d446d37
parentd18f59bf9223e9342be16baa2411ef3acc3f7ea4
x86: Move x86 processor cache info to cpu_features

1. Move x86 processor cache info to _dl_x86_cpu_features in ld.so.
2. Update tunable bounds with TUNABLE_SET_WITH_BOUNDS.
3. Move x86 cache info initialization to dl-cacheinfo.h and initialize
x86 cache info in init_cpu_features ().
4. Put x86 cache info for libc in cacheinfo.h, which is included in
libc-start.c in libc.a and is included in cacheinfo.c in libc.so.

Reviewed-by: Adhemerval Zanella <adhemerval.zanella@linaro.org>
sysdeps/x86/cacheinfo.c
sysdeps/x86/cacheinfo.h
sysdeps/x86/cpu-features.c
sysdeps/x86/dl-cacheinfo.h
sysdeps/x86/include/cpu-features.h