]> 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)
commit80203ec1166cbc957f6e6e2c30f238acf094a8ec
tree1af50134c2a9b2d5a1c4e2b74cd6f29ef4cdd978
parent1afc59c14272ac779eeb16a3148b6db9a53703ae
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 51adfa112560 ("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