Skip to contentSkip to conversation

e1000e: Make watchdog use delayed work

PATCH Superseded Detlev Casanova 1 participant 1 message Jun 17, 2019

Subsystems (3)

v1 of 3 Superseded Latest is v3 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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.

---
 drivers/net/ethernet/intel/e1000e/e1000.h  |  3 +-
 drivers/net/ethernet/intel/e1000e/netdev.c | 52 +++++++++++-----------
 2 files changed, 28 insertions(+), 27 deletions(-)
drivers/net/ethernet/intel/e1000e/e1000.h +1 -2
index be13227f1697..942ab74030ca 100644
@@ -186,12 +186,11 @@ 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;
 
 	const struct e1000_info *ei;
 
drivers/net/ethernet/intel/e1000e/netdev.c +27 -25

126 lines not on this page · raw message

Signature · 1 line
2.22.0