diff options
author | Peter Zijlstra <a.p.zijlstra@chello.nl> | 2011-04-09 21:17:42 +0200 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2011-05-28 18:01:12 +0200 |
commit | facc43071cc0d4821c176d7d34570714eb348df9 (patch) | |
tree | 0dd46f10d70f7814d622f1862ba6bf1c1cf4e18d /kernel/debug | |
parent | 9137fb28ac74d05eb66d1d8e6778eaa14e6fed43 (diff) |
perf: Optimize event scheduling locking
Currently we only hold one ctx->lock at a time, which results in us
flipping back and forth between cpuctx->ctx.lock and task_ctx->lock.
Avoid this and gain large atomic regions by holding both locks. We
nest the task lock inside the cpu lock, since with task scheduling we
might have to change task ctx while holding the cpu ctx lock.
Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
Link: http://lkml.kernel.org/r/20110409192141.769881865@chello.nl
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'kernel/debug')
0 files changed, 0 insertions, 0 deletions