brcmfmac: use atomic_t for statistic counter in struct brcmf_bus
authorArend Van Spriel <arend.vanspriel@broadcom.com>
Thu, 22 Jun 2017 10:01:02 +0000 (11:01 +0100)
committerKalle Valo <kvalo@codeaurora.org>
Wed, 28 Jun 2017 17:53:05 +0000 (20:53 +0300)
commita833f3d4de53921263f6a060dbff08d5af926ba7
tree2689ac18aad7a0e2e6d741a294c28943dd25c075
parentca2e99b2cae99570cade884e800153f5a2928335
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>
drivers/net/wireless/broadcom/brcm80211/brcmfmac/bus.h
drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c