scsi: qla4xxx: use time conversion macros
Subsystems (2)
PATCH 1/1 scsi: qla4xxx: use time conversion macros
Replace the raw use of 500 value in schedule_timeout() function with msecs_to_jiffies() to ensure intended value across different kernel configurations regardless of HZ value.
Signed-off-by Shi Hao <[email protected]>
--- drivers/scsi/qla4xxx/ql4_nx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/scsi/qla4xxx/ql4_nx.c +1 -1
@@ -1552,7 +1552,7 @@ static int qla4_82xx_cmdpeg_ready(struct scsi_qla_host *ha, int pegtune_val) (val == PHAN_INITIALIZE_ACK))return 0 ;set_current_state (TASK_UNINTERRUPTIBLE ); -schedule_timeout (500 ); +schedule_timeout (msecs_to_jiffies (500 )); }while (--retries);
--
2.51.0
Martin K. Petersen
AppliedShi,
Quoted 3 lines
Replace the raw use of 500 value in
schedule_timeout()function withmsecs_to_jiffies()to ensure intended value across different kernel configurations regardless of HZ value.
Applied to 6.19/scsi-staging, thanks!
Signature · 1 line
Martin K. Petersen
Martin K. Petersen
AppliedQuoted 6 lines · Shi Hao
Replace the raw use of 500 value in
schedule_timeout()function withmsecs_to_jiffies()to ensure intended value across different kernel configurations regardless of HZ value.
Applied to 6.19/scsi-queue, thanks!
[1/1] scsi: qla4xxx: use time conversion macros
https://git.kernel.org/mkp/scsi/c/9086cac895c3
Signature · 1 line
Martin K. Petersen