summaryrefslogtreecommitdiff
path: root/drivers/net/ethernet/jme.h
diff options
context:
space:
mode:
authorSebastian Andrzej Siewior <bigeasy@linutronix.de>2021-03-09 11:42:11 +0300
committerThomas Gleixner <tglx@linutronix.de>2021-03-17 18:33:58 +0300
commitc62c38e349c73cad90f59f00fe8070b3648b6d08 (patch)
treeb4adfdf2083869ecadd8ede9b89faf0bccf2ab55 /drivers/net/ethernet/jme.h
parenteb2dafbba8b824ee77f166629babd470dd0b1c0a (diff)
downloadlinux-c62c38e349c73cad90f59f00fe8070b3648b6d08.tar.xz
net: jme: Replace link-change tasklet with work
The link change tasklet disables the tasklets for tx/rx processing while upating hw parameters and then enables the tasklets again. This update can also be pushed into a workqueue where it can be performed in preemptible context. This allows tasklet_disable() to become sleeping. Replace the linkch_task tasklet with a work. Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de> Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Acked-by: Peter Zijlstra (Intel) <peterz@infradead.org> Link: https://lore.kernel.org/r/20210309084242.106288922@linutronix.de
Diffstat (limited to 'drivers/net/ethernet/jme.h')
-rw-r--r--drivers/net/ethernet/jme.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/jme.h b/drivers/net/ethernet/jme.h
index a2c3b00d939d..2af76329b4a2 100644
--- a/drivers/net/ethernet/jme.h
+++ b/drivers/net/ethernet/jme.h
@@ -411,7 +411,7 @@ struct jme_adapter {
struct tasklet_struct rxempty_task;
struct tasklet_struct rxclean_task;
struct tasklet_struct txclean_task;
- struct tasklet_struct linkch_task;
+ struct work_struct linkch_task;
struct tasklet_struct pcc_task;
unsigned long flags;
u32 reg_txcs;