diff options
author | Ivan Vecera <ivecera@redhat.com> | 2011-04-21 00:20:04 +0000 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2011-04-21 17:36:00 -0700 |
commit | e74fbd030223e29d269f4be17e3dce6de38f4c28 (patch) | |
tree | 3f514d7472679c6be3e1d7feae4a73c28bfeac56 | |
parent | e965c05dabdabb85af0187952ccd75e43995c4b3 (diff) |
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>
-rw-r--r-- | drivers/net/benet/be_main.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/benet/be_main.c b/drivers/net/benet/be_main.c index 7cb5a114c733..02a0443d1821 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)); } |