Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 234466
b: refs/heads/master
c: 768a06e
h: refs/heads/master
v: v3
  • Loading branch information
Peter Zijlstra authored and Ingo Molnar committed Feb 23, 2011
1 parent 7f84d64 commit 8ef1199
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 11 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: 3f7cce3c18188a067d463749168bdda5abc5b0f7
refs/heads/master: 768a06e2ca49cdf72389208cfc056a36cf8bc5e3
13 changes: 3 additions & 10 deletions trunk/kernel/perf_event.c
Original file line number Diff line number Diff line change
Expand Up @@ -5810,16 +5810,9 @@ static void task_clock_event_del(struct perf_event *event, int flags)

static void task_clock_event_read(struct perf_event *event)
{
u64 time;

if (!in_nmi()) {
update_context_time(event->ctx);
time = event->ctx->time;
} else {
u64 now = perf_clock();
u64 delta = now - event->ctx->timestamp;
time = event->ctx->time + delta;
}
u64 now = perf_clock();
u64 delta = now - event->ctx->timestamp;
u64 time = event->ctx->time + delta;

task_clock_event_update(event, time);
}
Expand Down

0 comments on commit 8ef1199

Please sign in to comment.