Skip to content

Commit

Permalink
staging: brcm80211: remove DHD_SCHED macro definition
Browse files Browse the repository at this point in the history
The fullmac driver now always uses scheduler functionality.

Signed-off-by: Arend van Spriel <arend@broadcom.com>
Reviewed-by: Roland Vossen <rvossen@broadcom.com>
Reviewed-by: Franky Lin <frankyl@broadcom.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
  • Loading branch information
Arend van Spriel authored and Greg Kroah-Hartman committed Jul 5, 2011
1 parent e0d319f commit 9922af4
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 5 deletions.
1 change: 0 additions & 1 deletion drivers/staging/brcm80211/brcmfmac/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ ccflags-y := \
-DBCMSDIO \
-DBRCM_FULLMAC \
-DBRCMF_FIRSTREAD=64 \
-DDHD_SCHED \
-DBRCMF_SDALIGN=64 \
-DEMBEDDED_PLATFORM \
-DMAX_HDR_READ=64 \
Expand Down
4 changes: 0 additions & 4 deletions drivers/staging/brcm80211/brcmfmac/dhd_linux.c
Original file line number Diff line number Diff line change
Expand Up @@ -1201,14 +1201,12 @@ static int brcmf_watchdog_thread(void *data)
/* This thread doesn't need any user-level access,
* so get rid of all our resources
*/
#ifdef DHD_SCHED
if (brcmf_watchdog_prio > 0) {
struct sched_param param;
param.sched_priority = (brcmf_watchdog_prio < MAX_RT_PRIO) ?
brcmf_watchdog_prio : (MAX_RT_PRIO - 1);
sched_setscheduler(current, SCHED_FIFO, &param);
}
#endif /* DHD_SCHED */

allow_signal(SIGTERM);
/* Run until signal received */
Expand Down Expand Up @@ -1261,15 +1259,13 @@ static int brcmf_dpc_thread(void *data)
/* This thread doesn't need any user-level access,
* so get rid of all our resources
*/
#ifdef DHD_SCHED
if (brcmf_dpc_prio > 0) {
struct sched_param param;
param.sched_priority =
(brcmf_dpc_prio <
MAX_RT_PRIO) ? brcmf_dpc_prio : (MAX_RT_PRIO - 1);
sched_setscheduler(current, SCHED_FIFO, &param);
}
#endif /* DHD_SCHED */

allow_signal(SIGTERM);
/* Run until signal received */
Expand Down

0 comments on commit 9922af4

Please sign in to comment.