]> git.baikalelectronics.ru Git - kernel.git/commit
ixgbe: Correct thermal sensor event check
authorMark Rustad <mark.d.rustad@intel.com>
Tue, 25 Apr 2017 20:55:25 +0000 (13:55 -0700)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Wed, 31 May 2017 11:36:51 +0000 (04:36 -0700)
commit81994b3a2fd41f717b505906d92dc8f7c2e42e47
tree30a4c8f1a3c6d4aa6852aa6bf8a50a76fbda2c5a
parent799f505e0558d6caf5e8963cab7cee2112e91171
ixgbe: Correct thermal sensor event check

The thermal sensor event logic is messed up, because it can execute
the code when there is no thermal event. The current logic is that
it will exit when !capable && !event whereas it really should exit
when !capable || !event. For one thing, it means that the service
task is doing too much work. It probably has some other symptoms as
well. So, correct the logic, simplifying to only execute when there
is a thermal event. The capable check is redundant.

Signed-off-by: Mark Rustad <mark.d.rustad@intel.com>
Tested-by: Andrew Bowers <andrewx.bowers@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/ixgbe/ixgbe_main.c