e1000e: Make watchdog use delayed work
Use delayed work instead of timers to run the watchdog of the e1000e driver. Simplify the code with one less middle function. Signed-off-by: Detlev Casanova <detlev.casanova@gmail.com> Tested-by: Aaron Brown <aaron.f.brown@intel.com> Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
This commit is contained in:

committed by
Jeff Kirsher

parent
1d8d80b4e4
commit
59653e6497
@@ -186,12 +186,13 @@ struct e1000_phy_regs {
|
||||
|
||||
/* board specific private data structure */
|
||||
struct e1000_adapter {
|
||||
struct timer_list watchdog_timer;
|
||||
struct timer_list phy_info_timer;
|
||||
struct timer_list blink_timer;
|
||||
|
||||
struct work_struct reset_task;
|
||||
struct work_struct watchdog_task;
|
||||
struct delayed_work watchdog_task;
|
||||
|
||||
struct workqueue_struct *e1000_workqueue;
|
||||
|
||||
const struct e1000_info *ei;
|
||||
|
||||
|
Reference in New Issue
Block a user