Skip to contentSkip to conversation

sparc: Set DISABLE_BRANCH_PROFILING in VDSO CFLAGS.

PATCH New David Miller 1 participant 1 message Oct 23, 2018 SPARC + UltraSPARC (sparc/sparc64)

lore
Share & tools
lore

David Miller

author maintainer
#0 lore raw

PATCH 4/8 sparc: Set DISABLE_BRANCH_PROFILING in VDSO CFLAGS.

Not in vclock_gettime.c itself.

---
 arch/sparc/vdso/Makefile         | 3 ++-
 arch/sparc/vdso/vclock_gettime.c | 5 -----
 2 files changed, 2 insertions(+), 6 deletions(-)
arch/sparc/vdso/Makefile +2 -1
index dc85570d8839..7ea03dd2bd62 100644
@@ -58,7 +58,8 @@ CFL := $(PROFILING) -mcmodel=medlow -fPIC -O2 -fasynchronous-unwind-tables \
        -m64 -ffixed-g2 -ffixed-g3 -fcall-used-g4 -fcall-used-g5 -ffixed-g6 \
        -ffixed-g7 $(filter -g%,$(KBUILD_CFLAGS)) \
        $(call cc-option, -fno-stack-protector) -fno-omit-frame-pointer \
-       -foptimize-sibling-calls -DBUILD_VDSO
+       -foptimize-sibling-calls \
+       -DDISABLE_BRANCH_PROFILING -DBUILD_VDSO
 
 $(vobjs): KBUILD_CFLAGS += $(CFL)
 
arch/sparc/vdso/vclock_gettime.c +0 -5
index 4e853d1582c7..7b5bf63fc0f5 100644
@@ -12,11 +12,6 @@
  * Copyright (c) 2017 Oracle and/or its affiliates. All rights reserved.
  */
 
-/* Disable profiling for userspace code: */
-#ifndef	DISABLE_BRANCH_PROFILING
-#define	DISABLE_BRANCH_PROFILING
-#endif
-
 #include <linux/kernel.h>
 #include <linux/time.h>
 #include <linux/string.h>
Signature · 1 line
2.19.1.328.g5a0cc8aca