@@ -598,7 +598,7 @@ lpfc_config_port_post(struct lpfc_hba *phba)
598
598
jiffies + msecs_to_jiffies (1000 * timeout ));
599
599
/* Set up heart beat (HB) timer */
600
600
mod_timer (& phba -> hb_tmofunc ,
601
- jiffies + msecs_to_jiffies ( 1000 * LPFC_HB_MBOX_INTERVAL ));
601
+ jiffies + secs_to_jiffies ( LPFC_HB_MBOX_INTERVAL ));
602
602
clear_bit (HBA_HBEAT_INP , & phba -> hba_flag );
603
603
clear_bit (HBA_HBEAT_TMO , & phba -> hba_flag );
604
604
phba -> last_completion_time = jiffies ;
@@ -1267,7 +1267,7 @@ lpfc_hb_mbox_cmpl(struct lpfc_hba * phba, LPFC_MBOXQ_t * pmboxq)
1267
1267
!test_bit (FC_UNLOADING , & phba -> pport -> load_flag ))
1268
1268
mod_timer (& phba -> hb_tmofunc ,
1269
1269
jiffies +
1270
- msecs_to_jiffies ( 1000 * LPFC_HB_MBOX_INTERVAL ));
1270
+ secs_to_jiffies ( LPFC_HB_MBOX_INTERVAL ));
1271
1271
return ;
1272
1272
}
1273
1273
@@ -1555,7 +1555,7 @@ lpfc_hb_timeout_handler(struct lpfc_hba *phba)
1555
1555
/* If IOs are completing, no need to issue a MBX_HEARTBEAT */
1556
1556
spin_lock_irq (& phba -> pport -> work_port_lock );
1557
1557
if (time_after (phba -> last_completion_time +
1558
- msecs_to_jiffies ( 1000 * LPFC_HB_MBOX_INTERVAL ),
1558
+ secs_to_jiffies ( LPFC_HB_MBOX_INTERVAL ),
1559
1559
jiffies )) {
1560
1560
spin_unlock_irq (& phba -> pport -> work_port_lock );
1561
1561
if (test_bit (HBA_HBEAT_INP , & phba -> hba_flag ))
@@ -3354,7 +3354,7 @@ lpfc_block_mgmt_io(struct lpfc_hba *phba, int mbx_action)
3354
3354
spin_unlock_irqrestore (& phba -> hbalock , iflag );
3355
3355
if (mbx_action == LPFC_MBX_NO_WAIT )
3356
3356
return ;
3357
- timeout = msecs_to_jiffies (LPFC_MBOX_TMO * 1000 ) + jiffies ;
3357
+ timeout = secs_to_jiffies (LPFC_MBOX_TMO ) + jiffies ;
3358
3358
spin_lock_irqsave (& phba -> hbalock , iflag );
3359
3359
if (phba -> sli .mbox_active ) {
3360
3360
actcmd = phba -> sli .mbox_active -> u .mb .mbxCommand ;
@@ -4924,14 +4924,14 @@ int lpfc_scan_finished(struct Scsi_Host *shost, unsigned long time)
4924
4924
stat = 1 ;
4925
4925
goto finished ;
4926
4926
}
4927
- if (time >= msecs_to_jiffies (30 * 1000 )) {
4927
+ if (time >= secs_to_jiffies (30 )) {
4928
4928
lpfc_printf_log (phba , KERN_INFO , LOG_INIT ,
4929
4929
"0461 Scanning longer than 30 "
4930
4930
"seconds. Continuing initialization\n" );
4931
4931
stat = 1 ;
4932
4932
goto finished ;
4933
4933
}
4934
- if (time >= msecs_to_jiffies (15 * 1000 ) &&
4934
+ if (time >= secs_to_jiffies (15 ) &&
4935
4935
phba -> link_state <= LPFC_LINK_DOWN ) {
4936
4936
lpfc_printf_log (phba , KERN_INFO , LOG_INIT ,
4937
4937
"0465 Link down longer than 15 "
@@ -4945,7 +4945,7 @@ int lpfc_scan_finished(struct Scsi_Host *shost, unsigned long time)
4945
4945
if (vport -> num_disc_nodes || vport -> fc_prli_sent )
4946
4946
goto finished ;
4947
4947
if (!atomic_read (& vport -> fc_map_cnt ) &&
4948
- time < msecs_to_jiffies ( 2 * 1000 ))
4948
+ time < secs_to_jiffies ( 2 ))
4949
4949
goto finished ;
4950
4950
if ((phba -> sli .sli_flag & LPFC_SLI_MBOX_ACTIVE ) != 0 )
4951
4951
goto finished ;
@@ -5179,8 +5179,8 @@ lpfc_vmid_poll(struct timer_list *t)
5179
5179
lpfc_worker_wake_up (phba );
5180
5180
5181
5181
/* restart the timer for the next iteration */
5182
- mod_timer (& phba -> inactive_vmid_poll , jiffies + msecs_to_jiffies ( 1000 *
5183
- LPFC_VMID_TIMER ));
5182
+ mod_timer (& phba -> inactive_vmid_poll ,
5183
+ jiffies + secs_to_jiffies ( LPFC_VMID_TIMER ));
5184
5184
}
5185
5185
5186
5186
/**
0 commit comments