Skip to content

Commit

Permalink
rs90: kernel: disable stack zero init
Browse files Browse the repository at this point in the history
This feature introduced in kernel 5.2 and activated only with
supported toolchain: GCC12+ in our case.

The patch reduces memory usage by the kernel code for ~50kB
including .init section (effective reduction 35-40kB).

Signed-off-by: Siarhei Volkau <[email protected]>
  • Loading branch information
SiarheiVolkau authored and pcercuei committed Sep 26, 2023
1 parent 9e5f8f1 commit 5f2f74a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions board/opendingux/rs90/linux_defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,7 @@ CONFIG_NLS_CODEPAGE_437=m
CONFIG_NLS_ASCII=m
CONFIG_NLS_ISO8859_1=m
CONFIG_NLS_UTF8=m
CONFIG_INIT_STACK_NONE=y
CONFIG_CRYPTO_LZ4HC=m
# CONFIG_CRYPTO_HW is not set
CONFIG_DMA_CMA=y
Expand Down

0 comments on commit 5f2f74a

Please sign in to comment.