Skip to contentSkip to conversation

be2net: increment work_counter in be_worker

PATCH Applied Ivan Vecera 2 participants 2 messages Apr 21, 2011 – Apr 22, 2011

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 be2net: increment work_counter in be_worker

The commit 609ff3b adds support to display temperature of ASIC but there is missing increment of work_counter in be_worker. Because of this 1) the function be_cmd_get_die_temperature is called every 1 second instead of every 32 seconds 2) be_cmd_get_die_temperature is called, although it is not supported.
This patch fixes this bug.

---
 drivers/net/benet/be_main.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
drivers/net/benet/be_main.c +1 -0
index 7cb5a11..02a0443 100644
@@ -1873,6 +1873,7 @@ static void be_worker(struct work_struct *work)
 		be_detect_dump_ue(adapter);
 
 reschedule:
+	adapter->work_counter++;
 	schedule_delayed_work(&adapter->work, msecs_to_jiffies(1000));
 }
 
Signature · 1 line
1.7.3.4
maintainer Applied
#1 lore raw

From: Ivan Vecera <[email protected]>
Date: Thu, 21 Apr 2011 12:20:04 +0200

Quoted 8 lines

The commit 609ff3b adds support to display temperature of ASIC but there is missing increment of work_counter in be_worker. Because of this 1) the function be_cmd_get_die_temperature is called every 1 second instead of every 32 seconds 2) be_cmd_get_die_temperature is called, although it is not supported.
This patch fixes this bug.

Applied to net-2.6, thank you.