Skip to content

Commit db03b42

Browse files
Allen Paisrichardweinberger
authored andcommitted
um: Convert tasklets to use new tasklet_setup() API
In preparation for unconditionally passing the struct tasklet_struct pointer to all tasklet callbacks, switch to using the new tasklet_setup() and from_tasklet() to pass the tasklet pointer explicitly. Signed-off-by: Romain Perier <romain.perier@gmail.com> Signed-off-by: Allen Pais <allen.lkml@gmail.com> Acked-By: Anton Ivanov <anton.ivanov@cambridgegreys.com> Signed-off-by: Richard Weinberger <richard@nod.at>
1 parent b650545 commit db03b42

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

‎arch/um/drivers/vector_kern.c‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1196,9 +1196,9 @@ static int vector_net_close(struct net_device *dev)
11961196

11971197
/* TX tasklet */
11981198

1199-
static void vector_tx_poll(unsigned long data)
1199+
static void vector_tx_poll(struct tasklet_struct *t)
12001200
{
1201-
struct vector_private *vp = (struct vector_private *)data;
1201+
struct vector_private *vp = from_tasklet(vp, t, tx_poll);
12021202

12031203
vp->estats.tx_kicks++;
12041204
vector_send(vp->tx_queue);
@@ -1629,7 +1629,7 @@ static void vector_eth_configure(
16291629
});
16301630

16311631
dev->features = dev->hw_features = (NETIF_F_SG | NETIF_F_FRAGLIST);
1632-
tasklet_init(&vp->tx_poll, vector_tx_poll, (unsigned long)vp);
1632+
tasklet_setup(&vp->tx_poll, vector_tx_poll);
16331633
INIT_WORK(&vp->reset_tx, vector_reset_tx);
16341634

16351635
timer_setup(&vp->tl, vector_timer_expire, 0);

0 commit comments

Comments
 (0)