diff options
| author | Tony Lindgren <[email protected]> | 2020-07-02 09:29:49 -0700 |
|---|---|---|
| committer | Kalle Valo <[email protected]> | 2020-07-15 12:12:29 +0300 |
| commit | f0325e38ab39c2e270770b72c79795772ac3b49e (patch) | |
| tree | 3022cbd901ab1a2c6e04e157eb2ffe92e83aa7eb /tools/perf/scripts/python | |
| parent | eb215c33f308cefe6d3691ffac27f9f498280811 (diff) | |
wlcore: Use spin_trylock in wlcore_irq_locked() for running the queue
We currently have a collection of flags and locking between the
threaded irq and tx work:
- wl->flags bitops
- wl->mutex
- wl->wl_lock spinlock
The bitops flags do not need a spinlock around them, and
wlcore_irq() already holds the mutex calling wlcore_irq_locked().
And we only need the spinlock to see if we need to run the queue
or not.
To simplify the locking, we can use spin_trylock and always run the
tx queue unless we know there's nothing to do.
Signed-off-by: Tony Lindgren <[email protected]>
Signed-off-by: Kalle Valo <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions