x86: Add cache information support for Zhaoxin processors

System Internals / glibc - mayshao-oc [zhaoxin.com] - 30 April 2020 13:45 EDT

To obtain Zhaoxin CPU cache information, add a new function handle_zhaoxin().

Add a new function get_common_cache_info() that extracts the code in init_cacheinfo() to get the value of the variable shared, threads.

Add Zhaoxin branch in init_cacheinfo() for initializing variables, such as __x86_shared_cache_size.

a98dc92dd1 x86: Add cache information support for Zhaoxin processors
sysdeps/x86/cacheinfo.c | 478 ++++++++++++++++++++++++++++--------------------
1 file changed, 282 insertions(+), 196 deletions(-)

Upstream: sourceware.org


  • Share