summaryrefslogtreecommitdiffstats
path: root/drivers/net/benet/be_main.c
diff options
context:
space:
mode:
authorIvan Vecera <ivecera@redhat.com>2011-04-21 00:20:04 +0000
committerDavid S. Miller <davem@davemloft.net>2011-04-21 17:36:00 -0700
commite74fbd030223e29d269f4be17e3dce6de38f4c28 (patch)
tree3f514d7472679c6be3e1d7feae4a73c28bfeac56 /drivers/net/benet/be_main.c
parente965c05dabdabb85af0187952ccd75e43995c4b3 (diff)
downloadop-kernel-dev-e74fbd030223e29d269f4be17e3dce6de38f4c28.zip
op-kernel-dev-e74fbd030223e29d269f4be17e3dce6de38f4c28.tar.gz
be2net: increment work_counter in be_worker
The commit 609ff3b ("be2net: add code to display temperature of ASIC") 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. Signed-off-by: Ivan Vecera <ivecera@redhat.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/benet/be_main.c')
-rw-r--r--drivers/net/benet/be_main.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/benet/be_main.c b/drivers/net/benet/be_main.c
index 7cb5a11..02a0443 100644
--- a/drivers/net/benet/be_main.c
+++ b/drivers/net/benet/be_main.c
@@ -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));
}
OpenPOWER on IntegriCloud