MLK-19517-03 revert: brcmfmac: add a module parameter to set scheduling priority of sdio_dpc
will use WQ_HIGHPRI instead. Signed-off-by: Wright Feng <wright.feng@cypress.com> Signed-off-by: Fugang Duan <fugang.duan@nxp.com> (cherry picked from commit: 2925b73171942933311e87ab51747a055cfd8abf) (Vipul: Fixed merge conflicts) Signed-off-by: Vipul Kumar <vipul_kumar@mentor.com>
This commit is contained in:
parent
d848f03913
commit
d776333793
|
@ -71,10 +71,6 @@ static int brcmf_eap_restrict;
|
|||
module_param_named(eap_restrict, brcmf_eap_restrict, int, 0400);
|
||||
MODULE_PARM_DESC(eap_restrict, "Block non-802.1X frames until auth finished");
|
||||
|
||||
static int brcmf_sdio_dpc_prio;
|
||||
module_param_named(sdio_dpc_prio, brcmf_sdio_dpc_prio, int, S_IRUSR);
|
||||
MODULE_PARM_DESC(sdio_dpc_prio, "The scheduling priority of sdio_dpc thread");
|
||||
|
||||
#ifdef DEBUG
|
||||
/* always succeed brcmf_bus_started() */
|
||||
static int brcmf_ignore_probe_fail;
|
||||
|
@ -431,7 +427,6 @@ struct brcmf_mp_device *brcmf_get_module_param(struct device *dev,
|
|||
settings->roamoff = !!brcmf_roamoff;
|
||||
settings->iapp = !!brcmf_iapp_enable;
|
||||
settings->eap_restrict = !!brcmf_eap_restrict;
|
||||
settings->sdio_dpc_prio = brcmf_sdio_dpc_prio;
|
||||
#ifdef DEBUG
|
||||
settings->ignore_probe_fail = !!brcmf_ignore_probe_fail;
|
||||
#endif
|
||||
|
|
|
@ -22,7 +22,6 @@
|
|||
#include <linux/bcma/bcma.h>
|
||||
#include <linux/debugfs.h>
|
||||
#include <linux/vmalloc.h>
|
||||
#include <uapi/linux/sched/types.h>
|
||||
#include <asm/unaligned.h>
|
||||
#include <defs.h>
|
||||
#include <brcmu_wifi.h>
|
||||
|
@ -2715,18 +2714,9 @@ static void brcmf_sdio_dpc(struct brcmf_sdio *bus)
|
|||
uint txlimit = bus->txbound; /* Tx frames to send before resched */
|
||||
uint framecnt; /* Temporary counter of tx/rx frames */
|
||||
int err = 0;
|
||||
struct sched_param param;
|
||||
struct brcmf_pub *drvr = bus->sdiodev->bus_if->drvr;
|
||||
int sdio_dpc_prio = drvr->settings->sdio_dpc_prio;
|
||||
|
||||
brcmf_dbg(SDIO, "Enter\n");
|
||||
|
||||
if (sdio_dpc_prio > 0) {
|
||||
param.sched_priority = (sdio_dpc_prio < MAX_RT_PRIO) ?
|
||||
sdio_dpc_prio : (MAX_RT_PRIO - 1);
|
||||
sched_setscheduler(current, SCHED_FIFO, ¶m);
|
||||
}
|
||||
|
||||
sdio_claim_host(bus->sdiodev->func1);
|
||||
|
||||
/* If waiting for HTAVAIL, check status */
|
||||
|
|
Loading…
Reference in a new issue