aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/staging/rtl8192e/rtllib.h
diff options
context:
space:
mode:
authorDavidlohr Bueso <dave@stgolabs.net>2022-04-11 08:16:20 -0700
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2022-04-12 15:53:51 +0200
commitf96f8ae08d33eeae65581b6dbf25d12e307e7b2c (patch)
tree7cc5d7a91b324b71d302b1760b31245a9c83e43e /drivers/staging/rtl8192e/rtllib.h
parentstaging/rtl8712: remove event_tasklet (diff)
downloadlinux-dev-f96f8ae08d33eeae65581b6dbf25d12e307e7b2c.tar.xz
linux-dev-f96f8ae08d33eeae65581b6dbf25d12e307e7b2c.zip
staging/rtl8192e,ieee80211: replace ps tasklet with work
Tasklets have long been deprecated as being too heavy on the system by running in irq context - and this is not a performance critical path. If a higher priority process wants to run, it must wait for the tasklet to finish before doing so. rtllib_sta_ps() and ieee80211_sta_ps() will now run in process context and have further concurrency (tasklets being serialized among themselves), but this is done holding the ieee->lock, so it should be fine. Signed-off-by: Davidlohr Bueso <dave@stgolabs.net> Link: https://lore.kernel.org/r/20220411151620.129178-7-dave@stgolabs.net Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/rtl8192e/rtllib.h')
-rw-r--r--drivers/staging/rtl8192e/rtllib.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/rtl8192e/rtllib.h b/drivers/staging/rtl8192e/rtllib.h
index c985e4ebc545..0ecd81a81866 100644
--- a/drivers/staging/rtl8192e/rtllib.h
+++ b/drivers/staging/rtl8192e/rtllib.h
@@ -1585,7 +1585,7 @@ struct rtllib_device {
short sta_sleep;
int ps_timeout;
int ps_period;
- struct tasklet_struct ps_task;
+ struct work_struct ps_task;
u64 ps_time;
bool polling;