summaryrefslogtreecommitdiffstats
path: root/arch/xtensa/oprofile
diff options
context:
space:
mode:
authorMax Filippov <jcmvbkbc@gmail.com>2013-02-25 16:01:33 +0100
committerChris Zankel <chris@zankel.net>2013-05-09 10:07:09 +0200
commit74f5bf029ee052e3d845672728e80b7240d14f09 (patch)
tree72255cba6a63fcf4aae89c5c3b1b3a4c3ec39e30 /arch/xtensa/oprofile
parentLinux 3.9 (diff)
downloadlinux-74f5bf029ee052e3d845672728e80b7240d14f09.tar.xz
linux-74f5bf029ee052e3d845672728e80b7240d14f09.zip
xtensa: fix oprofile building as module
Signed-off-by: Max Filippov <jcmvbkbc@gmail.com> Signed-off-by: Chris Zankel <chris@zankel.net>
Diffstat (limited to 'arch/xtensa/oprofile')
-rw-r--r--arch/xtensa/oprofile/backtrace.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/arch/xtensa/oprofile/backtrace.c b/arch/xtensa/oprofile/backtrace.c
index 66f32ee2c982..5f03a593d84f 100644
--- a/arch/xtensa/oprofile/backtrace.c
+++ b/arch/xtensa/oprofile/backtrace.c
@@ -132,9 +132,7 @@ static void xtensa_backtrace_kernel(struct pt_regs *regs, unsigned int depth)
pc = MAKE_PC_FROM_RA(a0, pc);
/* Add the PC to the trace. */
- if (kernel_text_address(pc))
- oprofile_add_trace(pc);
-
+ oprofile_add_trace(pc);
if (pc == (unsigned long) &common_exception_return) {
regs = (struct pt_regs *)a1;
if (user_mode(regs)) {