summaryrefslogtreecommitdiff
path: root/drivers/net/sky2.h
diff options
context:
space:
mode:
authorStephen Hemminger <shemminger@osdl.org>2005-12-09 19:34:57 (GMT)
committerJeff Garzik <jgarzik@pobox.com>2005-12-12 20:27:20 (GMT)
commit91c86df5a8a44157b456bf1e91fc6d878582e68c (patch)
tree74f9e3f1c9b78ede4350d3ad59914dd75def74e0 /drivers/net/sky2.h
parentfb17358fe31e01baf902a9fd1fce0e29e3493517 (diff)
downloadlinux-fsl-qoriq-91c86df5a8a44157b456bf1e91fc6d878582e68c.tar.xz
[PATCH] sky2: phy processing in workqueue rather than tasklet
Do phy processing in a work queue rather than a tasklet. This means we can let bottom halves run. Signed-off-by: Stephen Hemminger <shemminger@osdl.org> Signed-off-by: Jeff Garzik <jgarzik@pobox.com>
Diffstat (limited to 'drivers/net/sky2.h')
-rw-r--r--drivers/net/sky2.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/net/sky2.h b/drivers/net/sky2.h
index 7943dd4..29ebca0 100644
--- a/drivers/net/sky2.h
+++ b/drivers/net/sky2.h
@@ -1823,8 +1823,10 @@ struct sky2_port {
u8 rx_csum;
u8 wol;
- struct tasklet_struct phy_task;
struct net_device_stats net_stats;
+
+ struct work_struct phy_task;
+ struct semaphore phy_sema;
};
struct sky2_hw {
@@ -1842,8 +1844,6 @@ struct sky2_hw {
struct sky2_status_le *st_le;
u32 st_idx;
dma_addr_t st_dma;
-
- spinlock_t phy_lock;
};
/* Register accessor for memory mapped device */