aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/posix-cpu-timers.c
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/posix-cpu-timers.c')
-rw-r--r--kernel/posix-cpu-timers.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/kernel/posix-cpu-timers.c b/kernel/posix-cpu-timers.c
index 520f6c59948d..9d9169aa2e24 100644
--- a/kernel/posix-cpu-timers.c
+++ b/kernel/posix-cpu-timers.c
@@ -1173,6 +1173,9 @@ static void check_process_timers(struct task_struct *tsk,
1173 } 1173 }
1174 t = tsk; 1174 t = tsk;
1175 do { 1175 do {
1176 if (unlikely(t->flags & PF_EXITING))
1177 continue;
1178
1176 ticks = cputime_add(cputime_add(t->utime, t->stime), 1179 ticks = cputime_add(cputime_add(t->utime, t->stime),
1177 prof_left); 1180 prof_left);
1178 if (!cputime_eq(prof_expires, cputime_zero) && 1181 if (!cputime_eq(prof_expires, cputime_zero) &&
@@ -1193,11 +1196,7 @@ static void check_process_timers(struct task_struct *tsk,
1193 t->it_sched_expires > sched)) { 1196 t->it_sched_expires > sched)) {
1194 t->it_sched_expires = sched; 1197 t->it_sched_expires = sched;
1195 } 1198 }
1196 1199 } while ((t = next_thread(t)) != tsk);
1197 do {
1198 t = next_thread(t);
1199 } while (unlikely(t->flags & PF_EXITING));
1200 } while (t != tsk);
1201 } 1200 }
1202} 1201}
1203 1202