Commit 9922af4b authored by Arend van Spriel's avatar Arend van Spriel Committed by Greg Kroah-Hartman

staging: brcm80211: remove DHD_SCHED macro definition

The fullmac driver now always uses scheduler functionality.
Signed-off-by: default avatarArend van Spriel <arend@broadcom.com>
Reviewed-by: default avatarRoland Vossen <rvossen@broadcom.com>
Reviewed-by: default avatarFranky Lin <frankyl@broadcom.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent e0d319f5
...@@ -19,7 +19,6 @@ ccflags-y := \ ...@@ -19,7 +19,6 @@ ccflags-y := \
-DBCMSDIO \ -DBCMSDIO \
-DBRCM_FULLMAC \ -DBRCM_FULLMAC \
-DBRCMF_FIRSTREAD=64 \ -DBRCMF_FIRSTREAD=64 \
-DDHD_SCHED \
-DBRCMF_SDALIGN=64 \ -DBRCMF_SDALIGN=64 \
-DEMBEDDED_PLATFORM \ -DEMBEDDED_PLATFORM \
-DMAX_HDR_READ=64 \ -DMAX_HDR_READ=64 \
......
...@@ -1201,14 +1201,12 @@ static int brcmf_watchdog_thread(void *data) ...@@ -1201,14 +1201,12 @@ static int brcmf_watchdog_thread(void *data)
/* This thread doesn't need any user-level access, /* This thread doesn't need any user-level access,
* so get rid of all our resources * so get rid of all our resources
*/ */
#ifdef DHD_SCHED
if (brcmf_watchdog_prio > 0) { if (brcmf_watchdog_prio > 0) {
struct sched_param param; struct sched_param param;
param.sched_priority = (brcmf_watchdog_prio < MAX_RT_PRIO) ? param.sched_priority = (brcmf_watchdog_prio < MAX_RT_PRIO) ?
brcmf_watchdog_prio : (MAX_RT_PRIO - 1); brcmf_watchdog_prio : (MAX_RT_PRIO - 1);
sched_setscheduler(current, SCHED_FIFO, &param); sched_setscheduler(current, SCHED_FIFO, &param);
} }
#endif /* DHD_SCHED */
allow_signal(SIGTERM); allow_signal(SIGTERM);
/* Run until signal received */ /* Run until signal received */
...@@ -1261,7 +1259,6 @@ static int brcmf_dpc_thread(void *data) ...@@ -1261,7 +1259,6 @@ static int brcmf_dpc_thread(void *data)
/* This thread doesn't need any user-level access, /* This thread doesn't need any user-level access,
* so get rid of all our resources * so get rid of all our resources
*/ */
#ifdef DHD_SCHED
if (brcmf_dpc_prio > 0) { if (brcmf_dpc_prio > 0) {
struct sched_param param; struct sched_param param;
param.sched_priority = param.sched_priority =
...@@ -1269,7 +1266,6 @@ static int brcmf_dpc_thread(void *data) ...@@ -1269,7 +1266,6 @@ static int brcmf_dpc_thread(void *data)
MAX_RT_PRIO) ? brcmf_dpc_prio : (MAX_RT_PRIO - 1); MAX_RT_PRIO) ? brcmf_dpc_prio : (MAX_RT_PRIO - 1);
sched_setscheduler(current, SCHED_FIFO, &param); sched_setscheduler(current, SCHED_FIFO, &param);
} }
#endif /* DHD_SCHED */
allow_signal(SIGTERM); allow_signal(SIGTERM);
/* Run until signal received */ /* Run until signal received */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment