diff options
author | Luo Jiaxing <luojiaxing@huawei.com> | 2021-06-07 17:29:37 +0800 |
---|---|---|
committer | Martin K. Petersen <martin.petersen@oracle.com> | 2021-06-09 23:21:51 -0400 |
commit | 2f12a499511f40c268d6dfa4bf7fbe2344d2e6d3 (patch) | |
tree | e2929e7f214ad338aaea533305ddfb78ada11f9f /drivers/scsi/hisi_sas/hisi_sas.h | |
parent | 0f757339919d31533aeadbbfd62f2dd4a49e851f (diff) | |
download | lwn-2f12a499511f40c268d6dfa4bf7fbe2344d2e6d3.tar.gz lwn-2f12a499511f40c268d6dfa4bf7fbe2344d2e6d3.zip |
scsi: hisi_sas: Include HZ in timer macros
Include HZ in timer macros to make the code more concise.
Link: https://lore.kernel.org/r/1623058179-80434-4-git-send-email-john.garry@huawei.com
Signed-off-by: Luo Jiaxing <luojiaxing@huawei.com>
Signed-off-by: John Garry <john.garry@huawei.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'drivers/scsi/hisi_sas/hisi_sas.h')
-rw-r--r-- | drivers/scsi/hisi_sas/hisi_sas.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/scsi/hisi_sas/hisi_sas.h b/drivers/scsi/hisi_sas/hisi_sas.h index fbecdf756c77..8f2492d0d49e 100644 --- a/drivers/scsi/hisi_sas/hisi_sas.h +++ b/drivers/scsi/hisi_sas/hisi_sas.h @@ -91,8 +91,8 @@ #define HISI_SAS_PROT_MASK (HISI_SAS_DIF_PROT_MASK | HISI_SAS_DIX_PROT_MASK) -#define HISI_SAS_WAIT_PHYUP_TIMEOUT 20 -#define CLEAR_ITCT_TIMEOUT 20 +#define HISI_SAS_WAIT_PHYUP_TIMEOUT (20 * HZ) +#define HISI_SAS_CLEAR_ITCT_TIMEOUT (20 * HZ) struct hisi_hba; |