summaryrefslogtreecommitdiff
path: root/arch/sh/kernel/perf_callchain.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/sh/kernel/perf_callchain.c')
-rw-r--r--arch/sh/kernel/perf_callchain.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/arch/sh/kernel/perf_callchain.c b/arch/sh/kernel/perf_callchain.c
index 24ea837eac5b..a9dd3abde28e 100644
--- a/arch/sh/kernel/perf_callchain.c
+++ b/arch/sh/kernel/perf_callchain.c
@@ -68,9 +68,6 @@ perf_do_callchain(struct pt_regs *regs, struct perf_callchain_entry *entry)
is_user = user_mode(regs);
- if (!current || current->pid == 0)
- return;
-
if (is_user && current->state != TASK_RUNNING)
return;