glibc/sysdeps
Noah Goldstein 521afc9637 x86: Fix slight bug in shared_per_thread cache size calculation.
After:
```
    commit af992e7abd
    Author: Noah Goldstein <goldstein.w.n@gmail.com>
    Date:   Wed Jun 7 13:18:01 2023 -0500

        x86: Increase `non_temporal_threshold` to roughly `sizeof_L3 / 4`
```

Split `shared` (cumulative cache size) from `shared_per_thread` (cache
size per socket), the `shared_per_thread` *can* be slightly off from
the previous calculation.

Previously we added `core` even if `threads_l2` was invalid, and only
used `threads_l2` to divide `core` if it was present. The changed
version only included `core` if `threads_l2` was valid.

This change restores the old behavior if `threads_l2` is invalid by
adding the entire value of `core`.
Reviewed-by: DJ Delorie <dj@redhat.com>

(cherry picked from commit 47f7472178)
2023-09-05 17:17:52 -05:00
..
aarch64 elf: Fix rtld-audit trampoline for aarch64 2022-11-22 10:34:14 -03:00
alpha elf: Add _dl_audit_pltexit 2022-04-08 14:18:12 -04:00
arc
arm
csky
generic elf: Fix 64 time_t support for installed statically binaries 2023-02-08 09:32:42 +01:00
gnu
hppa hppa: Remove _dl_skip_args usage (BZ# 29165) 2022-06-10 09:13:54 -03:00
htl htl: Do not expose pthread hidden proto outside libpthread 2021-07-18 20:25:33 +00:00
hurd
i386
ia64
ieee754 s_sincosf.h: Change pio4 type to float [BZ #28713] 2023-01-11 15:29:37 +01:00
m68k
mach socket: Check lengths before advancing pointer in CMSG_NXTHDR 2022-08-22 18:59:26 +02:00
microblaze
mips
nios2 nios2: Remove _dl_skip_args usage (BZ# 29187) 2022-06-10 09:15:00 -03:00
nptl nptl: Add backoff mechanism to spinlock loop 2022-09-28 07:34:53 -07:00
posix posix: Fix system blocks SIGCHLD erroneously [BZ #30163] 2023-04-28 16:36:24 +02:00
powerpc elf: Drop elf/tls-macros.h in favor of __thread and tls_model attributes [BZ #28152] [BZ #28205] 2023-01-10 19:09:21 +01:00
pthread nptl: Fix __libc_cleanup_pop_restore asynchronous restore (BZ#29214) 2022-06-08 17:15:08 -03:00
riscv
s390 S390: Enable static PIE 2022-05-19 17:15:57 +02:00
sh elf: Add _dl_audit_pltexit 2022-04-08 14:18:12 -04:00
sparc
unix __check_pf: Add a cancellation cleanup handler [BZ #20975] 2023-05-23 14:53:23 -07:00
wordsize-32
wordsize-64
x86 x86: Fix slight bug in shared_per_thread cache size calculation. 2023-09-05 17:17:52 -05:00
x86_64 x86_64: Fix asm constraints in feraiseexcept (bug 30305) 2023-04-24 16:00:13 +02:00