brcmfmac: Minimize SDIO dpc scheduling.

SDIO dpc scheduling is done (repeated) when counter is set. This
counter gets decreased when dpc is finished. It is more efficient
to set counter to 0 before the dpc is actullay run. This will
minimize the frequency with which dpc is executed.

Reviewed-by: Arend Van Spriel <arend@broadcom.com>
Reviewed-by: Franky (Zhenhui) Lin <frankyl@broadcom.com>
Reviewed-by: Pieter-Paul Giesberts <pieterpg@broadcom.com>
Reviewed-by: Daniel (Deognyoun) Kim <dekim@broadcom.com>
Signed-off-by: Hante Meuleman <meuleman@broadcom.com>
Signed-off-by: Arend van Spriel <arend@broadcom.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
This commit is contained in:
Hante Meuleman 2014-02-25 20:30:31 +01:00 committed by John W. Linville
parent 05c2c76713
commit 71abdc00d5
1 changed files with 1 additions and 1 deletions

View File

@ -3758,8 +3758,8 @@ static void brcmf_sdio_dataworker(struct work_struct *work)
datawork); datawork);
while (atomic_read(&bus->dpc_tskcnt)) { while (atomic_read(&bus->dpc_tskcnt)) {
atomic_set(&bus->dpc_tskcnt, 0);
brcmf_sdio_dpc(bus); brcmf_sdio_dpc(bus);
atomic_dec(&bus->dpc_tskcnt);
} }
} }