diff options
author | Peter Zijlstra <[email protected]> | 2011-04-09 21:17:42 +0200 |
---|---|---|
committer | Ingo Molnar <[email protected]> | 2011-05-28 18:01:12 +0200 |
commit | facc43071cc0d4821c176d7d34570714eb348df9 (patch) | |
tree | 0dd46f10d70f7814d622f1862ba6bf1c1cf4e18d /lib/mpi/mpiutil.c | |
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 <[email protected]>
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Ingo Molnar <[email protected]>
Diffstat (limited to 'lib/mpi/mpiutil.c')
0 files changed, 0 insertions, 0 deletions