summaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/broadcom/brcm80211/brcmfmac/bus.h
diff options
context:
space:
mode:
authorArend Van Spriel <arend.vanspriel@broadcom.com>2017-06-22 12:01:02 +0200
committerKalle Valo <kvalo@codeaurora.org>2017-06-28 19:53:05 +0200
commita833f3d4de53921263f6a060dbff08d5af926ba7 (patch)
tree2689ac18aad7a0e2e6d741a294c28943dd25c075 /drivers/net/wireless/broadcom/brcm80211/brcmfmac/bus.h
parentbrcmfmac: cleanup kerneldoc for struct brcmf_bus (diff)
downloadlinux-a833f3d4de53921263f6a060dbff08d5af926ba7.tar.xz
linux-a833f3d4de53921263f6a060dbff08d5af926ba7.zip
brcmfmac: use atomic_t for statistic counter in struct brcmf_bus
The statistic counter is used in common layer and in the bus layer in different thread contexts so change to use atomic operations. Reviewed-by: Hante Meuleman <hante.meuleman@broadcom.com> Reviewed-by: Pieter-Paul Giesberts <pieter-paul.giesberts@broadcom.com> Reviewed-by: Franky Lin <franky.lin@broadcom.com> Signed-off-by: Arend van Spriel <arend.vanspriel@broadcom.com> Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Diffstat (limited to 'drivers/net/wireless/broadcom/brcm80211/brcmfmac/bus.h')
-rw-r--r--drivers/net/wireless/broadcom/brcm80211/brcmfmac/bus.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/wireless/broadcom/brcm80211/brcmfmac/bus.h b/drivers/net/wireless/broadcom/brcm80211/brcmfmac/bus.h
index e2c895bc1e68..e1a4d9e0eb10 100644
--- a/drivers/net/wireless/broadcom/brcm80211/brcmfmac/bus.h
+++ b/drivers/net/wireless/broadcom/brcm80211/brcmfmac/bus.h
@@ -138,7 +138,7 @@ struct brcmf_bus {
struct brcmf_pub *drvr;
enum brcmf_bus_state state;
uint maxctl;
- unsigned long tx_realloc;
+ atomic_t tx_realloc;
u32 chip;
u32 chiprev;
bool always_use_fws_queue;