Commit 978cd874 authored by Andrew Morton's avatar Andrew Morton Committed by Linus Torvalds

[PATCH] s390: oprofile Kconfig fixes

From: Arnd Bergmann <arnd@arndb.de>

Enable basic profiling code on s390 depending on CONFIG_PROFILING, not
CONFIG_OPROFILE.

CONFIG_PROFILING should enable the generic profiling code here, even if
CONFIG_OPROFILE is not set.  Note that the identical code on i386 is always
compiled in, regardless of CONFIG_PROFILING and CONFIG_OPROFILE.
parent 0978a298
...@@ -179,7 +179,7 @@ __calculate_ticks(__u64 elapsed) ...@@ -179,7 +179,7 @@ __calculate_ticks(__u64 elapsed)
#endif /* CONFIG_ARCH_S390X */ #endif /* CONFIG_ARCH_S390X */
#if defined(CONFIG_OPROFILE) || defined(CONFIG_OPROFILE_MODULE) #ifdef CONFIG_PROFILING
extern char _stext, _etext; extern char _stext, _etext;
/* /*
...@@ -223,7 +223,7 @@ static inline void s390_do_profile(struct pt_regs * regs) ...@@ -223,7 +223,7 @@ static inline void s390_do_profile(struct pt_regs * regs)
} }
#else #else
#define s390_do_profile(regs) do { ; } while(0) #define s390_do_profile(regs) do { ; } while(0)
#endif /* CONFIG_OPROFILE */ #endif /* CONFIG_PROFILING */
/* /*
......
...@@ -5,8 +5,8 @@ menu "Profiling support" ...@@ -5,8 +5,8 @@ menu "Profiling support"
config PROFILING config PROFILING
bool "Profiling support (EXPERIMENTAL)" bool "Profiling support (EXPERIMENTAL)"
help help
Say Y here to enable the extended profiling support mechanisms used Say Y here to enable profiling support mechanisms used by
by profilers such as OProfile. profilers such as readprofile or OProfile.
config OPROFILE config OPROFILE
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment