Makefile: optimize for Cortex A55 (little cores)

Though we do have Cortex A78 for big cores, we can only optimize one set with Clang.

Signed-off-by: Nahuel Gómez <nahuelgomez329@gmail.com>
This commit is contained in:
Nahuel Gómez 2025-01-04 23:39:00 -03:00 committed by Ksawlii
parent 826acfacd4
commit 64f1f95a8a

View file

@ -839,6 +839,9 @@ ifdef CONFIG_CC_IS_CLANG
KBUILD_CPPFLAGS += -Qunused-arguments
KBUILD_CFLAGS += -Wno-format-invalid-specifier
KBUILD_CFLAGS += -Wno-gnu
ifeq ($(CONFIG_ARCH_EXYNOS), y)
KBUILD_CFLAGS += -mcpu=cortex-a55 -mtune=cortex-a55
endif
# CLANG uses a _MergedGlobals as optimization, but this breaks modpost, as the
# source of a reference will be _MergedGlobals and not on of the whitelisted names.
# See modpost pattern 2