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:
Detlev Casanova
2019-06-22 23:14:37 -04:00
committed by Jeff Kirsher
parent 1d8d80b4e4
commit 59653e6497
2 changed files with 32 additions and 27 deletions

View File

@@ -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;