Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 10085
b: refs/heads/master
c: ca531a0
h: refs/heads/master
i:
  10083: 295d6ad
v: v3
  • Loading branch information
Oleg Nesterov authored and Linus Torvalds committed Oct 24, 2005
1 parent e9a6c02 commit 9715883
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 3de463c7d9d58f8cf3395268230cb20a4c15bffa
refs/heads/master: ca531a0a5e01e5122f67cb6aca8fcbfc70e18e0b
6 changes: 6 additions & 0 deletions trunk/kernel/posix-cpu-timers.c
Original file line number Diff line number Diff line change
Expand Up @@ -486,6 +486,9 @@ static void process_timer_rebalance(struct task_struct *p,
struct task_struct *t = p;
unsigned int nthreads = atomic_read(&p->signal->live);

if (!nthreads)
return;

switch (clock_idx) {
default:
BUG();
Expand Down Expand Up @@ -1160,6 +1163,9 @@ static void check_process_timers(struct task_struct *tsk,
unsigned long long sched_left, sched;
const unsigned int nthreads = atomic_read(&sig->live);

if (!nthreads)
return;

prof_left = cputime_sub(prof_expires, utime);
prof_left = cputime_sub(prof_left, stime);
prof_left = cputime_div(prof_left, nthreads);
Expand Down

0 comments on commit 9715883

Please sign in to comment.