diff options
author | Sreekanth Reddy <sreekanth.reddy@broadcom.com> | 2019-06-24 17:42:55 +0300 |
---|---|---|
committer | Martin K. Petersen <martin.petersen@oracle.com> | 2019-06-27 05:58:34 +0300 |
commit | 610ef1e955cd262a5f72d8401a36c9cfca6072fe (patch) | |
tree | 2aeb5aa1a3d1d3607690cc028b2612d4defb220c /drivers/watchdog/stpmic1_wdt.c | |
parent | 48d6f0a6a5595abb38d899dbf8ca09f7dc858d2b (diff) | |
download | linux-610ef1e955cd262a5f72d8401a36c9cfca6072fe.tar.xz |
scsi: mpt3sas: Determine smp affinity on per HBA basis
Even though 'smp_affinity_enable' module parameter is enabled, if the
number of online CPUs is bigger than the number of msix vectors enabled on
that HBA, then smp affinity settings should be disabled only for this HBA.
But currently the smp affinity setting is disabled globally and hence smp
affinity will be disabled for subsequent HBAs even though number of msix
vectors enabled for this HBA matches the number of online CPU.
To fix this, define a per HBA variable smp_affinity_enable. Initially this
variable is initialized with smp_affinity_enable module parameter value. If
this HBA has less number of msix vectors configured when compared to number
of online cpus, then only this HBA's variable smp_affinity_enable is set to
zero.
Signed-off-by: Sreekanth Reddy <sreekanth.reddy@broadcom.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'drivers/watchdog/stpmic1_wdt.c')
0 files changed, 0 insertions, 0 deletions