]> git.ipfire.org Git - thirdparty/glibc.git/commit
x86: Handle _SC_LEVEL1_ICACHE_LINESIZE [BZ #27444]
authorH.J. Lu <hjl.tools@gmail.com>
Sat, 6 Mar 2021 18:19:32 +0000 (10:19 -0800)
committerH.J. Lu <hjl.tools@gmail.com>
Mon, 15 Mar 2021 12:43:26 +0000 (05:43 -0700)
commitf53ffc9b90cbd92fa5518686daf4091bdd1d4889
tree35e4c6a7aa32823135a4ceafdcde998e976727e2
parent332421312576bd7095e70589154af99b124dd2d1
x86: Handle _SC_LEVEL1_ICACHE_LINESIZE [BZ #27444]

commit 2d651eb9265d1366d7b9e881bfddd46db9c1ecc4
Author: H.J. Lu <hjl.tools@gmail.com>
Date:   Fri Sep 18 07:55:14 2020 -0700

    x86: Move x86 processor cache info to cpu_features

missed _SC_LEVEL1_ICACHE_LINESIZE.

1. Add level1_icache_linesize to struct cpu_features.
2. Initialize level1_icache_linesize by calling handle_intel,
handle_zhaoxin and handle_amd with _SC_LEVEL1_ICACHE_LINESIZE.
3. Return level1_icache_linesize for _SC_LEVEL1_ICACHE_LINESIZE.

Reviewed-by: Carlos O'Donell <carlos@redhat.com>
sysdeps/x86/Makefile
sysdeps/x86/cacheinfo.c
sysdeps/x86/dl-cacheinfo.h
sysdeps/x86/dl-diagnostics-cpu.c
sysdeps/x86/include/cpu-features.h
sysdeps/x86/tst-sysconf-cache-linesize-static.c [new file with mode: 0644]
sysdeps/x86/tst-sysconf-cache-linesize.c [new file with mode: 0644]