aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorSreekanth Reddy <sreekanth.reddy@broadcom.com>2019-06-24 10:42:53 -0400
committerMartin K. Petersen <martin.petersen@oracle.com>2019-06-26 22:58:34 -0400
commit381abbd1f7f978471722784895d1ff184ef86929 (patch)
tree2ca17c6b49dbb19903ff0d1ad6a305f4791527cd /drivers
parentscsi: ufs: Documentation: Announce ufs-tool v1.0 (diff)
downloadlinux-dev-381abbd1f7f978471722784895d1ff184ef86929.tar.xz
linux-dev-381abbd1f7f978471722784895d1ff184ef86929.zip
scsi: mpt3sas: Remove CPU arch check to determine perf_mode
Currently default perf_mode is set to 'balanced' on Intel architecture machines and on other machines default perf_mode is set to 'latency' mode. This CPU architecture check is removed and the default perf_mode mode is set to 'balanced' mode on all machines. User can choose the required performance mode using perf_mode module parameter. Signed-off-by: Sreekanth Reddy <sreekanth.reddy@broadcom.com> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/scsi/mpt3sas/mpt3sas_base.c16
1 files changed, 1 insertions, 15 deletions
diff --git a/drivers/scsi/mpt3sas/mpt3sas_base.c b/drivers/scsi/mpt3sas/mpt3sas_base.c
index cae74418015d..d55f13495b20 100644
--- a/drivers/scsi/mpt3sas/mpt3sas_base.c
+++ b/drivers/scsi/mpt3sas/mpt3sas_base.c
@@ -113,8 +113,7 @@ MODULE_PARM_DESC(perf_mode,
"interrupt coalescing is enabled on all queues,\n\t\t"
"2 - latency: high iops mode is disabled &\n\t\t"
"interrupt coalescing is enabled on all queues with timeout value 0xA,\n"
- "\t\tdefault - on Intel architecture, default perf_mode is\n\t\t"
- " 'balanced' and in others architectures the default mode is 'latency'"
+ "\t\tdefault - default perf_mode is 'balanced'"
);
enum mpt3sas_perf_mode {
@@ -2990,19 +2989,6 @@ _base_check_and_enable_high_iops_queues(struct MPT3SAS_ADAPTER *ioc,
if (perf_mode == MPT_PERF_MODE_DEFAULT) {
-#if defined(CONFIG_X86)
- /*
- * Use global variable boot_cpu_data.x86_vendor to
- * determine whether the architecture is Intel or not.
- */
- if (boot_cpu_data.x86_vendor != X86_VENDOR_INTEL) {
- ioc->high_iops_queues = 0;
- return;
- }
-#else
- ioc->high_iops_queues = 0;
- return;
-#endif
speed = pcie_get_speed_cap(ioc->pdev);
dev_info(&ioc->pdev->dev, "PCIe device speed is %s\n",
speed == PCIE_SPEED_2_5GT ? "2.5GHz" :