x86: Fix slight bug in `shared_per_thread` cache size calculation.
After: ``` commit af992e7a 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>
Loading
-
mentioned in commit 80a8c858
-
mentioned in commit 521afc96
-
mentioned in commit 47c7d2eb
-
mentioned in commit 42c266a1
-
mentioned in commit 402324a7
-
mentioned in commit f578da10
-
mentioned in commit 863fc577
-
mentioned in commit 047968e8
-
mentioned in commit 05c28930
-
mentioned in commit 31b06441
Please register or sign in to comment