Files
kernel_xiaomi_cepheus/lib
Nick Terrell 2acd3b8cd6 BACKPORT: lib: zstd: Don't add -O3 to cflags
After the update to zstd-1.4.10 passing -O3 is no longer necessary to
get good performance from zstd. Using the default optimization level -O2
is sufficient to get good performance.

This fixes the reported parisc -Wframe-larger-than=1536 errors [0]. The
gcc-8-hppa-linux-gnu compiler performed very poorly with -O3, generating
stacks that are ~3KB. With -O2 these same functions generate stacks in
the ~300B range, completely fixing the problem.

Additionally, this improves the reported code bloat [1]. With gcc-11
bloat-o-meter shows an 80KB code size improvement:

```
> ../scripts/bloat-o-meter vmlinux.old vmlinux
add/remove: 31/8 grow/shrink: 24/155 up/down: 25734/-107924 (-82190)
Total: Before=6418562, After=6336372, chg -1.28%
```

Compared to before the zstd-1.4.10 update we see a total code size
regression of 105KB, down from 374KB at v5.16-rc1:

```
> ../scripts/bloat-o-meter vmlinux.old vmlinux
add/remove: 292/62 grow/shrink: 56/88 up/down: 235009/-127487 (107522)
Total: Before=6228850, After=6336372, chg +1.73%
```

[0] https://lkml.org/lkml/2021/11/15/710
[1] https://lkml.org/lkml/2021/11/14/189

Reported-by: Geert Uytterhoeven <geert@linux-m68k.org>
Signed-off-by: Nick Terrell <terrelln@fb.com>
[cyberknight777: backport to 4.14]
Signed-off-by: Cyber Knight <cyberknight755@gmail.com>
2023-08-09 18:00:39 -05:00
..
2022-05-27 08:51:18 +00:00
2022-09-22 17:33:54 +03:00
2022-05-27 08:51:18 +00:00
2022-02-07 09:39:52 +00:00
2017-06-09 11:52:07 +02:00
2022-04-11 08:52:28 +00:00
2019-04-20 09:15:07 +02:00
2017-02-24 17:46:57 -08:00
2022-10-07 11:19:36 +03:00
2018-12-08 13:03:35 +01:00
2022-10-07 11:26:56 +03:00
2017-08-15 09:02:07 -07:00