be2net: increment work_counter in be_worker
Subsystems (2)
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
@@ -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
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_counterinbe_worker. Because of this 1) the functionbe_cmd_get_die_temperatureis called every 1 second instead of every 32 seconds 2)be_cmd_get_die_temperatureis called, although it is not supported.
This patch fixes this bug.Signed-off-by Ivan Vecera <[email protected]>
Applied to net-2.6, thank you.