diff options
| author | Nicolai Hähnle <[email protected]> | 2016-12-21 19:46:35 +0100 |
|---|---|---|
| committer | Ingo Molnar <[email protected]> | 2017-01-14 11:14:43 +0100 |
| commit | 200b1874401555e9b36010aa318e75cf57005f36 (patch) | |
| tree | 646203e67ab11ee6b22d52c439ae0e969f4b4a5f /tools/perf/scripts/python | |
| parent | 6baa5c60a97d7f1a37a4b5ab5fb3a450e56e8b06 (diff) | |
locking/ww_mutex: Notify waiters that have to back off while adding tasks to wait list
While adding our task as a waiter, detect if another task should back off
because of us.
With this patch, we establish the invariant that the wait list contains
at most one (sleeping) waiter with ww_ctx->acquired > 0, and this waiter
will be the first waiter with a context.
Since only waiters with ww_ctx->acquired > 0 have to back off, this allows
us to be much more economical with wakeups.
Signed-off-by: Nicolai Hähnle <[email protected]>
Signed-off-by: Peter Zijlstra (Intel) <[email protected]>
Cc: Andrew Morton <[email protected]>
Cc: Chris Wilson <[email protected]>
Cc: Daniel Vetter <[email protected]>
Cc: Linus Torvalds <[email protected]>
Cc: Maarten Lankhorst <[email protected]>
Cc: Paul E. McKenney <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Cc: Thomas Gleixner <[email protected]>
Cc: [email protected]
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Ingo Molnar <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions