diff options
author | Jie Yang <jie.yang@atheros.com> | 2009-12-06 18:16:58 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2009-12-08 23:48:07 -0500 |
commit | cb19054697e92a793f336380fd72c588521178ff (patch) | |
tree | e6bbbec3688aba8fb68eb54674e3f67a4c1f49d8 /drivers/net/atl1c/atl1c.h | |
parent | 4b45e3424e7210688f95039b8cdffb11d2e48934 (diff) |
atl1c:use common_task instead of reset_task and link_chg_task
use common_task instead of reset_task and link_chg_task, so it fix "call cancel_work_sync
from the work itself".
Signed-off-by: Jie Yang <jie.yang@atheros.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/atl1c/atl1c.h')
-rw-r--r-- | drivers/net/atl1c/atl1c.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/net/atl1c/atl1c.h b/drivers/net/atl1c/atl1c.h index 7e09084f75a9..efe5435bc3d3 100644 --- a/drivers/net/atl1c/atl1c.h +++ b/drivers/net/atl1c/atl1c.h | |||
@@ -555,6 +555,9 @@ struct atl1c_adapter { | |||
555 | #define __AT_TESTING 0x0001 | 555 | #define __AT_TESTING 0x0001 |
556 | #define __AT_RESETTING 0x0002 | 556 | #define __AT_RESETTING 0x0002 |
557 | #define __AT_DOWN 0x0003 | 557 | #define __AT_DOWN 0x0003 |
558 | u8 work_event; | ||
559 | #define ATL1C_WORK_EVENT_RESET 0x01 | ||
560 | #define ATL1C_WORK_EVENT_LINK_CHANGE 0x02 | ||
558 | u32 msg_enable; | 561 | u32 msg_enable; |
559 | 562 | ||
560 | bool have_msi; | 563 | bool have_msi; |
@@ -566,8 +569,7 @@ struct atl1c_adapter { | |||
566 | spinlock_t tx_lock; | 569 | spinlock_t tx_lock; |
567 | atomic_t irq_sem; | 570 | atomic_t irq_sem; |
568 | 571 | ||
569 | struct work_struct reset_task; | 572 | struct work_struct common_task; |
570 | struct work_struct link_chg_task; | ||
571 | struct timer_list watchdog_timer; | 573 | struct timer_list watchdog_timer; |
572 | struct timer_list phy_config_timer; | 574 | struct timer_list phy_config_timer; |
573 | 575 | ||