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:
parent
05c2c76713
commit
71abdc00d5
|
@ -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);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue