Commit ab4977f8 authored by Michael Buesch's avatar Michael Buesch Committed by John W. Linville

[PATCH] bcm43xx: rewrite and simplify the periodic task handling.

Signed-off-by: default avatarMichael Buesch <mbuesch@freenet.de>
Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
parent dcfd720b
...@@ -418,7 +418,6 @@ enum { ...@@ -418,7 +418,6 @@ enum {
struct net_device; struct net_device;
struct pci_dev; struct pci_dev;
struct workqueue_struct;
struct bcm43xx_dmaring; struct bcm43xx_dmaring;
struct bcm43xx_pioqueue; struct bcm43xx_pioqueue;
...@@ -706,18 +705,10 @@ struct bcm43xx_private { ...@@ -706,18 +705,10 @@ struct bcm43xx_private {
/* Interrupt Service Routine tasklet (bottom-half) */ /* Interrupt Service Routine tasklet (bottom-half) */
struct tasklet_struct isr_tasklet; struct tasklet_struct isr_tasklet;
/* Custom driver work queue. */
struct workqueue_struct *workqueue;
/* Periodic tasks */ /* Periodic tasks */
struct work_struct periodic_work0; struct timer_list periodic_tasks;
#define BCM43xx_PERIODIC_0_DELAY (HZ * 15) unsigned int periodic_state;
struct work_struct periodic_work1;
#define BCM43xx_PERIODIC_1_DELAY ((HZ * 60) + HZ / 2)
struct work_struct periodic_work2;
#define BCM43xx_PERIODIC_2_DELAY ((HZ * 120) + HZ)
struct work_struct periodic_work3;
#define BCM43xx_PERIODIC_3_DELAY ((HZ * 30) + HZ / 5)
struct work_struct restart_work; struct work_struct restart_work;
......
This diff is collapsed.
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