mirror of
https://github.com/FEX-Emu/linux.git
synced 2024-12-20 08:22:39 +00:00
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>
This commit is contained in:
parent
e965c05dab
commit
e74fbd0302
@ -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));
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user