]> git.baikalelectronics.ru Git - kernel.git/commit
iwlwifi: pcie: replace possible_cpus() with online_cpus() in MSIX mode
authorHaim Dreyfuss <haim.dreyfuss@intel.com>
Tue, 26 Jul 2016 15:03:07 +0000 (18:03 +0300)
committerLuca Coelho <luciano.coelho@intel.com>
Fri, 16 Sep 2016 06:10:32 +0000 (09:10 +0300)
commit4cf7ac4b12035ac92d13a249ce36653b9bcac081
tree1af50134c2a9b2d5a1c4e2b74cd6f29ef4cdd978
parent978d179129b5932f1e6f7ef16a71892c6d6850ac
iwlwifi: pcie: replace possible_cpus() with online_cpus() in MSIX mode

In MSIX mode the number of irq depends on the number of
possible cpus existing on the host.
This cause to bug in case there are offline cores.
Take into account only the online CPUs instead.
Also save it in temporary variable.

Fixes: commit beaaf9814e9c ("iwlwifi: pcie: Add new configuration to enable MSIX")
Signed-off-by: Haim Dreyfuss <haim.dreyfuss@intel.com>
Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
drivers/net/wireless/intel/iwlwifi/pcie/trans.c