diff options
Diffstat (limited to 'kernel/exit.c')
-rw-r--r-- | kernel/exit.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/kernel/exit.c b/kernel/exit.c index f9dfedd94af0..99ad4063ee4a 100644 --- a/kernel/exit.c +++ b/kernel/exit.c | |||
@@ -48,6 +48,7 @@ | |||
48 | #include <linux/tracehook.h> | 48 | #include <linux/tracehook.h> |
49 | #include <linux/fs_struct.h> | 49 | #include <linux/fs_struct.h> |
50 | #include <linux/init_task.h> | 50 | #include <linux/init_task.h> |
51 | #include <linux/perf_counter.h> | ||
51 | #include <trace/sched.h> | 52 | #include <trace/sched.h> |
52 | 53 | ||
53 | #include <asm/uaccess.h> | 54 | #include <asm/uaccess.h> |
@@ -159,7 +160,7 @@ static void delayed_put_task_struct(struct rcu_head *rhp) | |||
159 | struct task_struct *tsk = container_of(rhp, struct task_struct, rcu); | 160 | struct task_struct *tsk = container_of(rhp, struct task_struct, rcu); |
160 | 161 | ||
161 | #ifdef CONFIG_PERF_COUNTERS | 162 | #ifdef CONFIG_PERF_COUNTERS |
162 | WARN_ON_ONCE(!list_empty(&tsk->perf_counter_ctx.counter_list)); | 163 | WARN_ON_ONCE(tsk->perf_counter_ctxp); |
163 | #endif | 164 | #endif |
164 | trace_sched_process_free(tsk); | 165 | trace_sched_process_free(tsk); |
165 | put_task_struct(tsk); | 166 | put_task_struct(tsk); |