diff options
Diffstat (limited to 'kernel/posix-cpu-timers.c')
-rw-r--r-- | kernel/posix-cpu-timers.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/kernel/posix-cpu-timers.c b/kernel/posix-cpu-timers.c index 12161f74744e..5c9dc228747b 100644 --- a/kernel/posix-cpu-timers.c +++ b/kernel/posix-cpu-timers.c | |||
@@ -8,6 +8,7 @@ | |||
8 | #include <linux/math64.h> | 8 | #include <linux/math64.h> |
9 | #include <asm/uaccess.h> | 9 | #include <asm/uaccess.h> |
10 | #include <linux/kernel_stat.h> | 10 | #include <linux/kernel_stat.h> |
11 | #include <trace/events/timer.h> | ||
11 | 12 | ||
12 | /* | 13 | /* |
13 | * Called after updating RLIMIT_CPU to set timer expiration if necessary. | 14 | * Called after updating RLIMIT_CPU to set timer expiration if necessary. |
@@ -1090,9 +1091,13 @@ static void check_cpu_itimer(struct task_struct *tsk, struct cpu_itimer *it, | |||
1090 | cputime_one_jiffy); | 1091 | cputime_one_jiffy); |
1091 | it->error -= onecputick; | 1092 | it->error -= onecputick; |
1092 | } | 1093 | } |
1093 | } else | 1094 | } else { |
1094 | it->expires = cputime_zero; | 1095 | it->expires = cputime_zero; |
1096 | } | ||
1095 | 1097 | ||
1098 | trace_itimer_expire(signo == SIGPROF ? | ||
1099 | ITIMER_PROF : ITIMER_VIRTUAL, | ||
1100 | tsk->signal->leader_pid, cur_time); | ||
1096 | __group_send_sig_info(signo, SEND_SIG_PRIV, tsk); | 1101 | __group_send_sig_info(signo, SEND_SIG_PRIV, tsk); |
1097 | } | 1102 | } |
1098 | 1103 | ||