]> git.ipfire.org Git - thirdparty/glibc.git/commit
x86: Fix incorrect scope of setting `shared_per_thread` [BZ# 30745]
authorNoah Goldstein <goldstein.w.n@gmail.com>
Fri, 11 Aug 2023 00:28:24 +0000 (19:28 -0500)
committerNoah Goldstein <goldstein.w.n@gmail.com>
Fri, 11 Aug 2023 20:33:08 +0000 (15:33 -0500)
commit084fb31bc2c5f95ae0b9e6df4d3cf0ff43471ede
tree1b79cc8113295ce1322c35f3c6b1c557acda7989
parentf6b10ed8e9a00de49d0951e760cc2b5288862b47
x86: Fix incorrect scope of setting `shared_per_thread` [BZ# 30745]

The:

```
    if (shared_per_thread > 0 && threads > 0)
      shared_per_thread /= threads;
```

Code was accidentally moved to inside the else scope.  This doesn't
match how it was previously (before af992e7abd).

This patch fixes that by putting the division after the `else` block.
sysdeps/x86/dl-cacheinfo.h