diff options
| author | Tony Lindgren <tony@atomide.com> | 2020-07-02 09:29:50 -0700 |
|---|---|---|
| committer | Kalle Valo <kvalo@codeaurora.org> | 2020-07-15 12:12:30 +0300 |
| commit | 35fba0f0fd762a8b87d403ae3c723e0061c4aa25 (patch) | |
| tree | 856af36414701eeaea243be770051cd2be71c4d5 /include/linux/debugobjects.h | |
| parent | f0325e38ab39c2e270770b72c79795772ac3b49e (diff) | |
| download | cachepc-linux-35fba0f0fd762a8b87d403ae3c723e0061c4aa25.tar.gz cachepc-linux-35fba0f0fd762a8b87d403ae3c723e0061c4aa25.zip | |
wlcore: Use spin_trylock in wlcore_irq() to see if we need to queue tx
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 we only need
the spinlock to see if we need to queue tx work or not. And wlcore_irq()
holds the mutex.
To simplify the locking, we can use spin_trylock and always queue tx
work unless we know there's nothing to do.
Let's also update the comment a bit while at it.
Signed-off-by: Tony Lindgren <tony@atomide.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Link: https://lore.kernel.org/r/20200702162951.45392-4-tony@atomide.com
Diffstat (limited to 'include/linux/debugobjects.h')
0 files changed, 0 insertions, 0 deletions
