]> Pileus Git - ~andy/linux/commitdiff
be2net: increment work_counter in be_worker
authorIvan Vecera <ivecera@redhat.com>
Thu, 21 Apr 2011 00:20:04 +0000 (00:20 +0000)
committerDavid S. Miller <davem@davemloft.net>
Fri, 22 Apr 2011 00:36:00 +0000 (17:36 -0700)
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>
drivers/net/benet/be_main.c

index 7cb5a114c7338af0c584607c7bcd1e33dba4c0e2..02a0443d1821d56f5c4ed61d713b2b186f6dc62e 100644 (file)
@@ -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));
 }