@@ -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 ))
@@ -3352,7 +3352,7 @@ lpfc_block_mgmt_io(struct lpfc_hba *phba, int mbx_action)
3352
3352
spin_unlock_irqrestore (& phba -> hbalock , iflag );
3353
3353
if (mbx_action == LPFC_MBX_NO_WAIT )
3354
3354
return ;
3355
- timeout = msecs_to_jiffies (LPFC_MBOX_TMO * 1000 ) + jiffies ;
3355
+ timeout = secs_to_jiffies (LPFC_MBOX_TMO ) + jiffies ;
3356
3356
spin_lock_irqsave (& phba -> hbalock , iflag );
3357
3357
if (phba -> sli .mbox_active ) {
3358
3358
actcmd = phba -> sli .mbox_active -> u .mb .mbxCommand ;
@@ -4939,14 +4939,14 @@ int lpfc_scan_finished(struct Scsi_Host *shost, unsigned long time)
4939
4939
stat = 1 ;
4940
4940
goto finished ;
4941
4941
}
4942
- if (time >= msecs_to_jiffies (30 * 1000 )) {
4942
+ if (time >= secs_to_jiffies (30 )) {
4943
4943
lpfc_printf_log (phba , KERN_INFO , LOG_INIT ,
4944
4944
"0461 Scanning longer than 30 "
4945
4945
"seconds. Continuing initialization\n" );
4946
4946
stat = 1 ;
4947
4947
goto finished ;
4948
4948
}
4949
- if (time >= msecs_to_jiffies (15 * 1000 ) &&
4949
+ if (time >= secs_to_jiffies (15 ) &&
4950
4950
phba -> link_state <= LPFC_LINK_DOWN ) {
4951
4951
lpfc_printf_log (phba , KERN_INFO , LOG_INIT ,
4952
4952
"0465 Link down longer than 15 "
@@ -4960,7 +4960,7 @@ int lpfc_scan_finished(struct Scsi_Host *shost, unsigned long time)
4960
4960
if (vport -> num_disc_nodes || vport -> fc_prli_sent )
4961
4961
goto finished ;
4962
4962
if (!atomic_read (& vport -> fc_map_cnt ) &&
4963
- time < msecs_to_jiffies ( 2 * 1000 ))
4963
+ time < secs_to_jiffies ( 2 ))
4964
4964
goto finished ;
4965
4965
if ((phba -> sli .sli_flag & LPFC_SLI_MBOX_ACTIVE ) != 0 )
4966
4966
goto finished ;
@@ -5194,8 +5194,8 @@ lpfc_vmid_poll(struct timer_list *t)
5194
5194
lpfc_worker_wake_up (phba );
5195
5195
5196
5196
/* restart the timer for the next iteration */
5197
- mod_timer (& phba -> inactive_vmid_poll , jiffies + msecs_to_jiffies ( 1000 *
5198
- LPFC_VMID_TIMER ));
5197
+ mod_timer (& phba -> inactive_vmid_poll ,
5198
+ jiffies + secs_to_jiffies ( LPFC_VMID_TIMER ));
5199
5199
}
5200
5200
5201
5201
/**
0 commit comments