perf: Fix inconsistency between IP and callchain sampling
[linux-2.6.git] / arch / x86 / kernel / cpu / perf_event.c
index b1bb8c5..ed1998b 100644 (file)
@@ -2425,9 +2425,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;