diff options
author | David S. Miller <davem@davemloft.net> | 2018-10-22 01:14:01 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2018-10-22 18:51:45 -0400 |
commit | 44231b7fee3f086cf367588c7c79ec3b5d7619b2 (patch) | |
tree | 0640eac8bec7bcf649aec0bc516904f189553a7d /arch/sparc | |
parent | 3fe5d7e861286c0b80573f094e32dd9736370d69 (diff) |
sparc: Set DISABLE_BRANCH_PROFILING in VDSO CFLAGS.
Not in vclock_gettime.c itself.
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'arch/sparc')
-rw-r--r-- | arch/sparc/vdso/Makefile | 3 | ||||
-rw-r--r-- | arch/sparc/vdso/vclock_gettime.c | 5 |
2 files changed, 2 insertions, 6 deletions
diff --git a/arch/sparc/vdso/Makefile b/arch/sparc/vdso/Makefile index dc85570d8839..7ea03dd2bd62 100644 --- a/arch/sparc/vdso/Makefile +++ b/arch/sparc/vdso/Makefile | |||
@@ -58,7 +58,8 @@ CFL := $(PROFILING) -mcmodel=medlow -fPIC -O2 -fasynchronous-unwind-tables \ | |||
58 | -m64 -ffixed-g2 -ffixed-g3 -fcall-used-g4 -fcall-used-g5 -ffixed-g6 \ | 58 | -m64 -ffixed-g2 -ffixed-g3 -fcall-used-g4 -fcall-used-g5 -ffixed-g6 \ |
59 | -ffixed-g7 $(filter -g%,$(KBUILD_CFLAGS)) \ | 59 | -ffixed-g7 $(filter -g%,$(KBUILD_CFLAGS)) \ |
60 | $(call cc-option, -fno-stack-protector) -fno-omit-frame-pointer \ | 60 | $(call cc-option, -fno-stack-protector) -fno-omit-frame-pointer \ |
61 | -foptimize-sibling-calls -DBUILD_VDSO | 61 | -foptimize-sibling-calls \ |
62 | -DDISABLE_BRANCH_PROFILING -DBUILD_VDSO | ||
62 | 63 | ||
63 | $(vobjs): KBUILD_CFLAGS += $(CFL) | 64 | $(vobjs): KBUILD_CFLAGS += $(CFL) |
64 | 65 | ||
diff --git a/arch/sparc/vdso/vclock_gettime.c b/arch/sparc/vdso/vclock_gettime.c index 4e853d1582c7..7b5bf63fc0f5 100644 --- a/arch/sparc/vdso/vclock_gettime.c +++ b/arch/sparc/vdso/vclock_gettime.c | |||
@@ -12,11 +12,6 @@ | |||
12 | * Copyright (c) 2017 Oracle and/or its affiliates. All rights reserved. | 12 | * Copyright (c) 2017 Oracle and/or its affiliates. All rights reserved. |
13 | */ | 13 | */ |
14 | 14 | ||
15 | /* Disable profiling for userspace code: */ | ||
16 | #ifndef DISABLE_BRANCH_PROFILING | ||
17 | #define DISABLE_BRANCH_PROFILING | ||
18 | #endif | ||
19 | |||
20 | #include <linux/kernel.h> | 15 | #include <linux/kernel.h> |
21 | #include <linux/time.h> | 16 | #include <linux/time.h> |
22 | #include <linux/string.h> | 17 | #include <linux/string.h> |