Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 16717
b: refs/heads/master
c: 0aec63e
h: refs/heads/master
i:
  16715: 52de5fe
v: v3
  • Loading branch information
David S. Miller authored and Linus Torvalds committed Jan 7, 2006
1 parent f270281 commit ea2bf02
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 13 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: 0feb9bfcfa3f9bf67a4a1e3f2608700ad73f92ed
refs/heads/master: 0aec63e67c69545ca757a73a66f5dcf05fa484bf
13 changes: 1 addition & 12 deletions trunk/kernel/posix-cpu-timers.c
Original file line number Diff line number Diff line change
Expand Up @@ -238,18 +238,7 @@ static int cpu_clock_sample_group_locked(unsigned int clock_idx,
while ((t = next_thread(t)) != p) {
cpu->sched += t->sched_time;
}
if (p->tgid == current->tgid) {
/*
* We're sampling ourselves, so include the
* cycles not yet banked. We still omit
* other threads running on other CPUs,
* so the total can always be behind as
* much as max(nthreads-1,ncpus) * (NSEC_PER_SEC/HZ).
*/
cpu->sched += current_sched_time(current);
} else {
cpu->sched += p->sched_time;
}
cpu->sched += sched_ns(p);
break;
}
return 0;
Expand Down

0 comments on commit ea2bf02

Please sign in to comment.