diff options
author | Guilherme G. Piccoli <gpiccoli@linux.vnet.ibm.com> | 2016-07-26 20:39:42 (GMT) |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2016-07-27 06:17:42 (GMT) |
commit | d3480615cf00c6f615cdb61a9d03386574b93342 (patch) | |
tree | dfab19f532652c5285751847aa02065b3a1391ab /samples | |
parent | 4ac36a4adaf80013a60013d6f829f5863d5d0e05 (diff) | |
download | linux-d3480615cf00c6f615cdb61a9d03386574b93342.tar.xz |
be2net: perform temperature query in adapter regardless of its interface state
The be2net driver performs fw temperature queries on be_worker() routine,
which is executed each second for each be_adapter. There is a frequency
threshold to avoid fw query to happens at each call to be_worker();
instead, currently a fw query occurs once in 64 runs of the procedure.
Nevertheless, this fw temperature query is invoked only for adapters which
interface is up, so we can see I/O errors on read of hwmon counters from
userspace (from tools like lm-sensors) in case we have adapters' functions
which interface is down.
This patch moves the fw query code to be invoked even if interface is down.
No functional changes were introduced.
Signed-off-by: Guilherme G. Piccoli <gpiccoli@linux.vnet.ibm.com>
Acked-by: Sathya Perla <sathya.perla@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'samples')
0 files changed, 0 insertions, 0 deletions