diff options
Diffstat (limited to 'kernel/exit.c')
| -rw-r--r-- | kernel/exit.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/kernel/exit.c b/kernel/exit.c index e61891f8012..266f8920628 100644 --- a/kernel/exit.c +++ b/kernel/exit.c | |||
| @@ -49,6 +49,7 @@ | |||
| 49 | #include <linux/init_task.h> | 49 | #include <linux/init_task.h> |
| 50 | #include <linux/perf_event.h> | 50 | #include <linux/perf_event.h> |
| 51 | #include <trace/events/sched.h> | 51 | #include <trace/events/sched.h> |
| 52 | #include <linux/hw_breakpoint.h> | ||
| 52 | 53 | ||
| 53 | #include <asm/uaccess.h> | 54 | #include <asm/uaccess.h> |
| 54 | #include <asm/unistd.h> | 55 | #include <asm/unistd.h> |
| @@ -980,6 +981,10 @@ NORET_TYPE void do_exit(long code) | |||
| 980 | proc_exit_connector(tsk); | 981 | proc_exit_connector(tsk); |
| 981 | 982 | ||
| 982 | /* | 983 | /* |
| 984 | * FIXME: do that only when needed, using sched_exit tracepoint | ||
| 985 | */ | ||
| 986 | flush_ptrace_hw_breakpoint(tsk); | ||
| 987 | /* | ||
| 983 | * Flush inherited counters to the parent - before the parent | 988 | * Flush inherited counters to the parent - before the parent |
| 984 | * gets woken up by child-exit notifications. | 989 | * gets woken up by child-exit notifications. |
| 985 | */ | 990 | */ |
