linux_dsm_epyc7002/drivers/net/wireless/ti
Tony Lindgren 35fba0f0fd 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
2020-07-15 12:12:30 +03:00
..
wl12xx treewide: replace '---help---' in Kconfig files with 'help' 2020-06-14 01:57:21 +09:00
wl18xx treewide: replace '---help---' in Kconfig files with 'help' 2020-06-14 01:57:21 +09:00
wl1251 treewide: replace '---help---' in Kconfig files with 'help' 2020-06-14 01:57:21 +09:00
wlcore wlcore: Use spin_trylock in wlcore_irq() to see if we need to queue tx 2020-07-15 12:12:30 +03:00
Kconfig treewide: replace '---help---' in Kconfig files with 'help' 2020-06-14 01:57:21 +09:00
Makefile License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
wilink_platform_data.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 336 2019-06-05 17:37:07 +02:00