OSDN Git Service

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)
commit9fb064df6d57bf09ed3f8f964c8b0789b55206e7
tree1af50134c2a9b2d5a1c4e2b74cd6f29ef4cdd978
parent5fe343978b663e347e2e478e9005ddbf228ca508
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 2e5d4a8f61dc ("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