Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 74162
b: refs/heads/master
c: 08e4570
h: refs/heads/master
v: v3
  • Loading branch information
Ingo Molnar committed Nov 26, 2007
1 parent 45a950f commit dc87a86
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 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: 5e8869bb699d50be5c0733edfc71cfcd5b43e10a
refs/heads/master: 08e4570a4a393bcc241f78dfc444cb0b07995fc0
4 changes: 3 additions & 1 deletion trunk/fs/proc/array.c
Original file line number Diff line number Diff line change
Expand Up @@ -374,7 +374,9 @@ static cputime_t task_stime(struct task_struct *p)
stime = nsec_to_clock_t(p->se.sum_exec_runtime) -
cputime_to_clock_t(task_utime(p));

p->prev_stime = max(p->prev_stime, clock_t_to_cputime(stime));
if (stime >= 0)
p->prev_stime = max(p->prev_stime, clock_t_to_cputime(stime));

return p->prev_stime;
}
#endif
Expand Down

0 comments on commit dc87a86

Please sign in to comment.