perf: Fix inconsistency between IP and callchain sampling
[linux-2.6.git] / arch / sh / kernel / perf_callchain.c
index 24ea837..a9dd3ab 100644 (file)
@@ -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;