diff options
author | Peter Zijlstra <a.p.zijlstra@chello.nl> | 2009-11-20 22:19:50 +0100 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2009-11-21 14:11:38 +0100 |
commit | 02ffdbc866c8b1c8644601e9aa6155700eed4c91 (patch) | |
tree | fd5c0cfbbadc22e123aa25c17c74ac69f8b14887 /.mailmap | |
parent | abf4868b8548cae18d4fe8bbfb4e207443be01be (diff) | |
download | linux-02ffdbc866c8b1c8644601e9aa6155700eed4c91.tar.bz2 |
perf: Optimize perf_event_task_sched_out
Remove an update_context_time() call from the
perf_event_task_sched_out() path and into the branch its needed.
The call was both superfluous, because __perf_event_sched_out()
already does it, and wrong, because it was done without holding
ctx->lock.
Place it in perf_event_sync_stat(), which is the only place it
is needed and which does already hold ctx->lock.
Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Paul Mackerras <paulus@samba.org>
LKML-Reference: <20091120212508.779516394@chello.nl>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to '.mailmap')
0 files changed, 0 insertions, 0 deletions