diff --git a/Makefile b/Makefile index aa9d9b0e0c82..2de98e4eb2ec 100644 --- a/Makefile +++ b/Makefile @@ -662,9 +662,9 @@ ifdef CONFIG_CC_OPTIMIZE_FOR_SIZE KBUILD_CFLAGS += -Os else ifdef CONFIG_PROFILE_ALL_BRANCHES -KBUILD_CFLAGS += -O3 +KBUILD_CFLAGS += -O2 else -KBUILD_CFLAGS += -O3 +KBUILD_CFLAGS += -O2 endif endif