Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 189095
b: refs/heads/master
c: 15365c1
h: refs/heads/master
i:
  189093: 709e244
  189091: 7abdf05
  189087: d32a58d
v: v3
  • Loading branch information
Stanislaw Gruszka authored and Thomas Gleixner committed Mar 12, 2010
1 parent 1c6ebe9 commit f47c92b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 829b6c1ef488856c6a46a2f705f5068062d5f34c
refs/heads/master: 15365c108ea27598e265f8c13e7051d99ca5b0b9
10 changes: 7 additions & 3 deletions trunk/kernel/posix-cpu-timers.c
Original file line number Diff line number Diff line change
Expand Up @@ -1060,9 +1060,9 @@ static void check_thread_timers(struct task_struct *tsk,
}
}

static void stop_process_timers(struct task_struct *tsk)
static void stop_process_timers(struct signal_struct *sig)
{
struct thread_group_cputimer *cputimer = &tsk->signal->cputimer;
struct thread_group_cputimer *cputimer = &sig->cputimer;
unsigned long flags;

if (!cputimer->running)
Expand All @@ -1071,6 +1071,10 @@ static void stop_process_timers(struct task_struct *tsk)
spin_lock_irqsave(&cputimer->lock, flags);
cputimer->running = 0;
spin_unlock_irqrestore(&cputimer->lock, flags);

sig->cputime_expires.prof_exp = cputime_zero;
sig->cputime_expires.virt_exp = cputime_zero;
sig->cputime_expires.sched_exp = 0;
}

static u32 onecputick;
Expand Down Expand Up @@ -1131,7 +1135,7 @@ static void check_process_timers(struct task_struct *tsk,
list_empty(&timers[CPUCLOCK_VIRT]) &&
cputime_eq(sig->it[CPUCLOCK_VIRT].expires, cputime_zero) &&
list_empty(&timers[CPUCLOCK_SCHED])) {
stop_process_timers(tsk);
stop_process_timers(sig);
return;
}

Expand Down

0 comments on commit f47c92b

Please sign in to comment.