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)
#endif /* CONFIG_ARCH_S390X */
#if defined(CONFIG_OPROFILE) || defined(CONFIG_OPROFILE_MODULE)
#ifdef CONFIG_PROFILING
extern char _stext, _etext;
/*
......@@ -223,7 +223,7 @@ static inline void s390_do_profile(struct pt_regs * regs)
}
#else
#define s390_do_profile(regs) do { ; } while(0)
#endif /* CONFIG_OPROFILE */
#endif /* CONFIG_PROFILING */
/*
......
......@@ -5,8 +5,8 @@ menu "Profiling support"
config PROFILING
bool "Profiling support (EXPERIMENTAL)"
help
Say Y here to enable the extended profiling support mechanisms used
by profilers such as OProfile.
Say Y here to enable profiling support mechanisms used by
profilers such as readprofile or 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