Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e74fbd03 authored by Ivan Vecera's avatar Ivan Vecera Committed by David S. Miller
Browse files

be2net: increment work_counter in be_worker



The commit 609ff3bb ("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: default avatarIvan Vecera <ivecera@redhat.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent e965c05d
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -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));
}