Skip to content

Commit 899ed00

Browse files
author
Fox Snowpatch
committed
1 parent bc67cde commit 899ed00

File tree

28 files changed

+78
-71
lines changed

28 files changed

+78
-71
lines changed

arch/arm/mach-pxa/sharpsl_pm.c

+4-4
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,10 @@
3131
/*
3232
* Constants
3333
*/
34-
#define SHARPSL_CHARGE_ON_TIME_INTERVAL (msecs_to_jiffies(1*60*1000)) /* 1 min */
35-
#define SHARPSL_CHARGE_FINISH_TIME (msecs_to_jiffies(10*60*1000)) /* 10 min */
36-
#define SHARPSL_BATCHK_TIME (msecs_to_jiffies(15*1000)) /* 15 sec */
37-
#define SHARPSL_BATCHK_TIME_SUSPEND (60*10) /* 10 min */
34+
#define SHARPSL_CHARGE_ON_TIME_INTERVAL (secs_to_jiffies(60))
35+
#define SHARPSL_CHARGE_FINISH_TIME (secs_to_jiffies(10*60))
36+
#define SHARPSL_BATCHK_TIME (secs_to_jiffies(15))
37+
#define SHARPSL_BATCHK_TIME_SUSPEND (60*10) /* 10 min */
3838

3939
#define SHARPSL_WAIT_CO_TIME 15 /* 15 sec */
4040
#define SHARPSL_WAIT_DISCHARGE_ON 100 /* 100 msec */

arch/powerpc/platforms/pseries/papr_scm.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -544,7 +544,7 @@ static int drc_pmem_query_health(struct papr_scm_priv *p)
544544

545545
/* Jiffies offset for which the health data is assumed to be same */
546546
cache_timeout = p->lasthealth_jiffies +
547-
msecs_to_jiffies(MIN_HEALTH_QUERY_INTERVAL * 1000);
547+
secs_to_jiffies(MIN_HEALTH_QUERY_INTERVAL);
548548

549549
/* Fetch new health info is its older than MIN_HEALTH_QUERY_INTERVAL */
550550
if (time_after(jiffies, cache_timeout))

arch/s390/kernel/lgr.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ static struct timer_list lgr_timer;
166166
*/
167167
static void lgr_timer_set(void)
168168
{
169-
mod_timer(&lgr_timer, jiffies + msecs_to_jiffies(LGR_TIMER_INTERVAL_SECS * MSEC_PER_SEC));
169+
mod_timer(&lgr_timer, jiffies + secs_to_jiffies(LGR_TIMER_INTERVAL_SECS));
170170
}
171171

172172
/*

arch/s390/kernel/time.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -662,12 +662,12 @@ static void stp_check_leap(void)
662662
if (ret < 0)
663663
pr_err("failed to set leap second flags\n");
664664
/* arm Timer to clear leap second flags */
665-
mod_timer(&stp_timer, jiffies + msecs_to_jiffies(14400 * MSEC_PER_SEC));
665+
mod_timer(&stp_timer, jiffies + secs_to_jiffies(14400));
666666
} else {
667667
/* The day the leap second is scheduled for hasn't been reached. Retry
668668
* in one hour.
669669
*/
670-
mod_timer(&stp_timer, jiffies + msecs_to_jiffies(3600 * MSEC_PER_SEC));
670+
mod_timer(&stp_timer, jiffies + secs_to_jiffies(3600));
671671
}
672672
}
673673

arch/s390/kernel/topology.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -371,7 +371,7 @@ static void set_topology_timer(void)
371371
if (atomic_add_unless(&topology_poll, -1, 0))
372372
mod_timer(&topology_timer, jiffies + msecs_to_jiffies(100));
373373
else
374-
mod_timer(&topology_timer, jiffies + msecs_to_jiffies(60 * MSEC_PER_SEC));
374+
mod_timer(&topology_timer, jiffies + secs_to_jiffies(60));
375375
}
376376

377377
void topology_expect_change(void)

drivers/accel/habanalabs/common/device.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -817,7 +817,7 @@ static void device_hard_reset_pending(struct work_struct *work)
817817
}
818818

819819
queue_delayed_work(hdev->reset_wq, &device_reset_work->reset_work,
820-
msecs_to_jiffies(HL_PENDING_RESET_PER_SEC * 1000));
820+
secs_to_jiffies(HL_PENDING_RESET_PER_SEC));
821821
}
822822
}
823823

drivers/accel/habanalabs/common/habanalabs_drv.c

+1-2
Original file line numberDiff line numberDiff line change
@@ -362,8 +362,7 @@ static void fixup_device_params_per_asic(struct hl_device *hdev, int timeout)
362362
* a different default timeout for Gaudi
363363
*/
364364
if (timeout == HL_DEFAULT_TIMEOUT_LOCKED)
365-
hdev->timeout_jiffies = msecs_to_jiffies(GAUDI_DEFAULT_TIMEOUT_LOCKED *
366-
MSEC_PER_SEC);
365+
hdev->timeout_jiffies = secs_to_jiffies(GAUDI_DEFAULT_TIMEOUT_LOCKED);
367366

368367
hdev->reset_upon_device_release = 0;
369368
break;

drivers/block/xen-blkback/blkback.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -544,7 +544,7 @@ static void print_stats(struct xen_blkif_ring *ring)
544544
ring->st_rd_req, ring->st_wr_req,
545545
ring->st_f_req, ring->st_ds_req,
546546
ring->persistent_gnt_c, max_pgrants);
547-
ring->st_print = jiffies + msecs_to_jiffies(10 * 1000);
547+
ring->st_print = jiffies + secs_to_jiffies(10);
548548
ring->st_rd_req = 0;
549549
ring->st_wr_req = 0;
550550
ring->st_oo_req = 0;

drivers/gpu/drm/xe/xe_device.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -514,7 +514,7 @@ static int wait_for_lmem_ready(struct xe_device *xe)
514514
drm_dbg(&xe->drm, "Waiting for lmem initialization\n");
515515

516516
start = jiffies;
517-
timeout = start + msecs_to_jiffies(60 * 1000); /* 60 sec! */
517+
timeout = start + secs_to_jiffies(60); /* 60 sec! */
518518

519519
do {
520520
if (signal_pending(current))

drivers/net/ethernet/google/gve/gve_tx_dqo.c

+2-4
Original file line numberDiff line numberDiff line change
@@ -1146,8 +1146,7 @@ static void gve_handle_miss_completion(struct gve_priv *priv,
11461146
/* jiffies can wraparound but time comparisons can handle overflows. */
11471147
pending_packet->timeout_jiffies =
11481148
jiffies +
1149-
msecs_to_jiffies(GVE_REINJECT_COMPL_TIMEOUT *
1150-
MSEC_PER_SEC);
1149+
secs_to_jiffies(GVE_REINJECT_COMPL_TIMEOUT);
11511150
add_to_list(tx, &tx->dqo_compl.miss_completions, pending_packet);
11521151

11531152
*bytes += pending_packet->skb->len;
@@ -1191,8 +1190,7 @@ static void remove_miss_completions(struct gve_priv *priv,
11911190
pending_packet->state = GVE_PACKET_STATE_TIMED_OUT_COMPL;
11921191
pending_packet->timeout_jiffies =
11931192
jiffies +
1194-
msecs_to_jiffies(GVE_DEALLOCATE_COMPL_TIMEOUT *
1195-
MSEC_PER_SEC);
1193+
secs_to_jiffies(GVE_DEALLOCATE_COMPL_TIMEOUT);
11961194
/* Maintain pending packet in another list so the packet can be
11971195
* unallocated at a later time.
11981196
*/

drivers/net/wireless/ath/ath11k/debugfs.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ static int ath11k_debugfs_fw_stats_request(struct ath11k *ar,
178178
* received 'update stats' event, we keep a 3 seconds timeout in case,
179179
* fw_stats_done is not marked yet
180180
*/
181-
timeout = jiffies + msecs_to_jiffies(3 * 1000);
181+
timeout = jiffies + secs_to_jiffies(3);
182182

183183
ath11k_debugfs_fw_stats_reset(ar);
184184

drivers/scsi/arcmsr/arcmsr_hba.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -1044,7 +1044,7 @@ static void arcmsr_init_get_devmap_timer(struct AdapterControlBlock *pacb)
10441044
static void arcmsr_init_set_datetime_timer(struct AdapterControlBlock *pacb)
10451045
{
10461046
timer_setup(&pacb->refresh_timer, arcmsr_set_iop_datetime, 0);
1047-
pacb->refresh_timer.expires = jiffies + msecs_to_jiffies(60 * 1000);
1047+
pacb->refresh_timer.expires = jiffies + secs_to_jiffies(60);
10481048
add_timer(&pacb->refresh_timer);
10491049
}
10501050

drivers/scsi/lpfc/lpfc_init.c

+9-9
Original file line numberDiff line numberDiff line change
@@ -598,7 +598,7 @@ lpfc_config_port_post(struct lpfc_hba *phba)
598598
jiffies + msecs_to_jiffies(1000 * timeout));
599599
/* Set up heart beat (HB) timer */
600600
mod_timer(&phba->hb_tmofunc,
601-
jiffies + msecs_to_jiffies(1000 * LPFC_HB_MBOX_INTERVAL));
601+
jiffies + secs_to_jiffies(LPFC_HB_MBOX_INTERVAL));
602602
clear_bit(HBA_HBEAT_INP, &phba->hba_flag);
603603
clear_bit(HBA_HBEAT_TMO, &phba->hba_flag);
604604
phba->last_completion_time = jiffies;
@@ -1267,7 +1267,7 @@ lpfc_hb_mbox_cmpl(struct lpfc_hba * phba, LPFC_MBOXQ_t * pmboxq)
12671267
!test_bit(FC_UNLOADING, &phba->pport->load_flag))
12681268
mod_timer(&phba->hb_tmofunc,
12691269
jiffies +
1270-
msecs_to_jiffies(1000 * LPFC_HB_MBOX_INTERVAL));
1270+
secs_to_jiffies(LPFC_HB_MBOX_INTERVAL));
12711271
return;
12721272
}
12731273

@@ -1555,7 +1555,7 @@ lpfc_hb_timeout_handler(struct lpfc_hba *phba)
15551555
/* If IOs are completing, no need to issue a MBX_HEARTBEAT */
15561556
spin_lock_irq(&phba->pport->work_port_lock);
15571557
if (time_after(phba->last_completion_time +
1558-
msecs_to_jiffies(1000 * LPFC_HB_MBOX_INTERVAL),
1558+
secs_to_jiffies(LPFC_HB_MBOX_INTERVAL),
15591559
jiffies)) {
15601560
spin_unlock_irq(&phba->pport->work_port_lock);
15611561
if (test_bit(HBA_HBEAT_INP, &phba->hba_flag))
@@ -3354,7 +3354,7 @@ lpfc_block_mgmt_io(struct lpfc_hba *phba, int mbx_action)
33543354
spin_unlock_irqrestore(&phba->hbalock, iflag);
33553355
if (mbx_action == LPFC_MBX_NO_WAIT)
33563356
return;
3357-
timeout = msecs_to_jiffies(LPFC_MBOX_TMO * 1000) + jiffies;
3357+
timeout = secs_to_jiffies(LPFC_MBOX_TMO) + jiffies;
33583358
spin_lock_irqsave(&phba->hbalock, iflag);
33593359
if (phba->sli.mbox_active) {
33603360
actcmd = phba->sli.mbox_active->u.mb.mbxCommand;
@@ -4924,14 +4924,14 @@ int lpfc_scan_finished(struct Scsi_Host *shost, unsigned long time)
49244924
stat = 1;
49254925
goto finished;
49264926
}
4927-
if (time >= msecs_to_jiffies(30 * 1000)) {
4927+
if (time >= secs_to_jiffies(30)) {
49284928
lpfc_printf_log(phba, KERN_INFO, LOG_INIT,
49294929
"0461 Scanning longer than 30 "
49304930
"seconds. Continuing initialization\n");
49314931
stat = 1;
49324932
goto finished;
49334933
}
4934-
if (time >= msecs_to_jiffies(15 * 1000) &&
4934+
if (time >= secs_to_jiffies(15) &&
49354935
phba->link_state <= LPFC_LINK_DOWN) {
49364936
lpfc_printf_log(phba, KERN_INFO, LOG_INIT,
49374937
"0465 Link down longer than 15 "
@@ -4945,7 +4945,7 @@ int lpfc_scan_finished(struct Scsi_Host *shost, unsigned long time)
49454945
if (vport->num_disc_nodes || vport->fc_prli_sent)
49464946
goto finished;
49474947
if (!atomic_read(&vport->fc_map_cnt) &&
4948-
time < msecs_to_jiffies(2 * 1000))
4948+
time < secs_to_jiffies(2))
49494949
goto finished;
49504950
if ((phba->sli.sli_flag & LPFC_SLI_MBOX_ACTIVE) != 0)
49514951
goto finished;
@@ -5179,8 +5179,8 @@ lpfc_vmid_poll(struct timer_list *t)
51795179
lpfc_worker_wake_up(phba);
51805180

51815181
/* 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));
51845184
}
51855185

51865186
/**

drivers/scsi/lpfc/lpfc_nportdisc.c

+4-4
Original file line numberDiff line numberDiff line change
@@ -906,7 +906,7 @@ lpfc_rcv_logo(struct lpfc_vport *vport, struct lpfc_nodelist *ndlp,
906906
(ndlp->nlp_state >= NLP_STE_ADISC_ISSUE ||
907907
ndlp->nlp_state <= NLP_STE_PRLI_ISSUE)) {
908908
mod_timer(&ndlp->nlp_delayfunc,
909-
jiffies + msecs_to_jiffies(1000 * 1));
909+
jiffies + secs_to_jiffies(1));
910910
set_bit(NLP_DELAY_TMO, &ndlp->nlp_flag);
911911
ndlp->nlp_last_elscmd = ELS_CMD_PLOGI;
912912
lpfc_printf_vlog(vport, KERN_INFO,
@@ -1332,7 +1332,7 @@ lpfc_rcv_els_plogi_issue(struct lpfc_vport *vport, struct lpfc_nodelist *ndlp,
13321332
}
13331333

13341334
/* Put ndlp in npr state set plogi timer for 1 sec */
1335-
mod_timer(&ndlp->nlp_delayfunc, jiffies + msecs_to_jiffies(1000 * 1));
1335+
mod_timer(&ndlp->nlp_delayfunc, jiffies + secs_to_jiffies(1));
13361336
set_bit(NLP_DELAY_TMO, &ndlp->nlp_flag);
13371337
ndlp->nlp_last_elscmd = ELS_CMD_PLOGI;
13381338
ndlp->nlp_prev_state = NLP_STE_PLOGI_ISSUE;
@@ -1936,7 +1936,7 @@ lpfc_cmpl_reglogin_reglogin_issue(struct lpfc_vport *vport,
19361936

19371937
/* Put ndlp in npr state set plogi timer for 1 sec */
19381938
mod_timer(&ndlp->nlp_delayfunc,
1939-
jiffies + msecs_to_jiffies(1000 * 1));
1939+
jiffies + secs_to_jiffies(1));
19401940
set_bit(NLP_DELAY_TMO, &ndlp->nlp_flag);
19411941
ndlp->nlp_last_elscmd = ELS_CMD_PLOGI;
19421942

@@ -2743,7 +2743,7 @@ lpfc_rcv_prlo_npr_node(struct lpfc_vport *vport, struct lpfc_nodelist *ndlp,
27432743

27442744
if (!test_bit(NLP_DELAY_TMO, &ndlp->nlp_flag)) {
27452745
mod_timer(&ndlp->nlp_delayfunc,
2746-
jiffies + msecs_to_jiffies(1000 * 1));
2746+
jiffies + secs_to_jiffies(1));
27472747
set_bit(NLP_DELAY_TMO, &ndlp->nlp_flag);
27482748
clear_bit(NLP_NPR_ADISC, &ndlp->nlp_flag);
27492749
ndlp->nlp_last_elscmd = ELS_CMD_PLOGI;

drivers/scsi/lpfc/lpfc_nvme.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -2237,7 +2237,7 @@ lpfc_nvme_lport_unreg_wait(struct lpfc_vport *vport,
22372237
* wait. Print a message if a 10 second wait expires and renew the
22382238
* wait. This is unexpected.
22392239
*/
2240-
wait_tmo = msecs_to_jiffies(LPFC_NVME_WAIT_TMO * 1000);
2240+
wait_tmo = secs_to_jiffies(LPFC_NVME_WAIT_TMO);
22412241
while (true) {
22422242
ret = wait_for_completion_timeout(lport_unreg_cmp, wait_tmo);
22432243
if (unlikely(!ret)) {

drivers/scsi/lpfc/lpfc_sli.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -9012,7 +9012,7 @@ lpfc_sli4_hba_setup(struct lpfc_hba *phba)
90129012

90139013
/* Start heart beat timer */
90149014
mod_timer(&phba->hb_tmofunc,
9015-
jiffies + msecs_to_jiffies(1000 * LPFC_HB_MBOX_INTERVAL));
9015+
jiffies + secs_to_jiffies(LPFC_HB_MBOX_INTERVAL));
90169016
clear_bit(HBA_HBEAT_INP, &phba->hba_flag);
90179017
clear_bit(HBA_HBEAT_TMO, &phba->hba_flag);
90189018
phba->last_completion_time = jiffies;
@@ -13323,7 +13323,7 @@ lpfc_sli_mbox_sys_shutdown(struct lpfc_hba *phba, int mbx_action)
1332313323
lpfc_sli_mbox_sys_flush(phba);
1332413324
return;
1332513325
}
13326-
timeout = msecs_to_jiffies(LPFC_MBOX_TMO * 1000) + jiffies;
13326+
timeout = secs_to_jiffies(LPFC_MBOX_TMO) + jiffies;
1332713327

1332813328
/* Disable softirqs, including timers from obtaining phba->hbalock */
1332913329
local_bh_disable();

drivers/scsi/lpfc/lpfc_vmid.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -278,7 +278,7 @@ int lpfc_vmid_get_appid(struct lpfc_vport *vport, char *uuid,
278278
if (!(vport->phba->pport->vmid_flag & LPFC_VMID_TIMER_ENBLD)) {
279279
mod_timer(&vport->phba->inactive_vmid_poll,
280280
jiffies +
281-
msecs_to_jiffies(1000 * LPFC_VMID_TIMER));
281+
secs_to_jiffies(LPFC_VMID_TIMER));
282282
vport->phba->pport->vmid_flag |= LPFC_VMID_TIMER_ENBLD;
283283
}
284284
}

drivers/scsi/pm8001/pm8001_init.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -736,7 +736,7 @@ static int pm8001_init_sas_add(struct pm8001_hba_info *pm8001_ha)
736736
return -EIO;
737737
}
738738
time_remaining = wait_for_completion_timeout(&completion,
739-
msecs_to_jiffies(60*1000)); // 1 min
739+
secs_to_jiffies(60)); // 1 min
740740
if (!time_remaining) {
741741
kfree(payload.func_specific);
742742
pm8001_dbg(pm8001_ha, FAIL, "get_nvmd_req timeout\n");

drivers/staging/vc04_services/bcm2835-audio/bcm2835-vchiq.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ static int bcm2835_audio_send_msg_locked(struct bcm2835_audio_instance *instance
5959

6060
if (wait) {
6161
if (!wait_for_completion_timeout(&instance->msg_avail_comp,
62-
msecs_to_jiffies(10 * 1000))) {
62+
secs_to_jiffies(10))) {
6363
dev_err(instance->dev,
6464
"vchi message timeout, msg=%d\n", m->type);
6565
return -ETIMEDOUT;

fs/ceph/quota.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ static struct inode *lookup_quotarealm_inode(struct ceph_mds_client *mdsc,
166166
if (IS_ERR(in)) {
167167
doutc(cl, "Can't lookup inode %llx (err: %ld)\n", realm->ino,
168168
PTR_ERR(in));
169-
qri->timeout = jiffies + msecs_to_jiffies(60 * 1000); /* XXX */
169+
qri->timeout = jiffies + secs_to_jiffies(60); /* XXX */
170170
} else {
171171
qri->timeout = 0;
172172
qri->inode = in;

mm/kmemleak.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -1855,7 +1855,7 @@ static int kmemleak_scan_thread(void *arg)
18551855
* Wait before the first scan to allow the system to fully initialize.
18561856
*/
18571857
if (first_run) {
1858-
signed long timeout = msecs_to_jiffies(SECS_FIRST_SCAN * 1000);
1858+
signed long timeout = secs_to_jiffies(SECS_FIRST_SCAN);
18591859
first_run = 0;
18601860
while (timeout && !kthread_should_stop())
18611861
timeout = schedule_timeout_interruptible(timeout);
@@ -2241,7 +2241,7 @@ void __init kmemleak_init(void)
22412241
return;
22422242

22432243
jiffies_min_age = msecs_to_jiffies(MSECS_MIN_AGE);
2244-
jiffies_scan_wait = msecs_to_jiffies(SECS_SCAN_WAIT * 1000);
2244+
jiffies_scan_wait = secs_to_jiffies(SECS_SCAN_WAIT);
22452245

22462246
object_cache = KMEM_CACHE(kmemleak_object, SLAB_NOLEAKTRACE);
22472247
scan_area_cache = KMEM_CACHE(kmemleak_scan_area, SLAB_NOLEAKTRACE);

net/bluetooth/mgmt.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@ static const u16 mgmt_untrusted_events[] = {
210210
MGMT_EV_EXP_FEATURE_CHANGED,
211211
};
212212

213-
#define CACHE_TIMEOUT msecs_to_jiffies(2 * 1000)
213+
#define CACHE_TIMEOUT secs_to_jiffies(2)
214214

215215
#define ZERO_KEY "\x00\x00\x00\x00\x00\x00\x00\x00" \
216216
"\x00\x00\x00\x00\x00\x00\x00\x00"

net/netfilter/nf_conntrack_proto_sctp.c

+8-13
Original file line numberDiff line numberDiff line change
@@ -39,20 +39,15 @@ static const char *const sctp_conntrack_names[] = {
3939
[SCTP_CONNTRACK_HEARTBEAT_SENT] = "HEARTBEAT_SENT",
4040
};
4141

42-
#define SECS * HZ
43-
#define MINS * 60 SECS
44-
#define HOURS * 60 MINS
45-
#define DAYS * 24 HOURS
46-
4742
static const unsigned int sctp_timeouts[SCTP_CONNTRACK_MAX] = {
48-
[SCTP_CONNTRACK_CLOSED] = 10 SECS,
49-
[SCTP_CONNTRACK_COOKIE_WAIT] = 3 SECS,
50-
[SCTP_CONNTRACK_COOKIE_ECHOED] = 3 SECS,
51-
[SCTP_CONNTRACK_ESTABLISHED] = 210 SECS,
52-
[SCTP_CONNTRACK_SHUTDOWN_SENT] = 3 SECS,
53-
[SCTP_CONNTRACK_SHUTDOWN_RECD] = 3 SECS,
54-
[SCTP_CONNTRACK_SHUTDOWN_ACK_SENT] = 3 SECS,
55-
[SCTP_CONNTRACK_HEARTBEAT_SENT] = 30 SECS,
43+
[SCTP_CONNTRACK_CLOSED] = secs_to_jiffies(10),
44+
[SCTP_CONNTRACK_COOKIE_WAIT] = secs_to_jiffies(3),
45+
[SCTP_CONNTRACK_COOKIE_ECHOED] = secs_to_jiffies(3),
46+
[SCTP_CONNTRACK_ESTABLISHED] = secs_to_jiffies(210),
47+
[SCTP_CONNTRACK_SHUTDOWN_SENT] = secs_to_jiffies(3),
48+
[SCTP_CONNTRACK_SHUTDOWN_RECD] = secs_to_jiffies(3),
49+
[SCTP_CONNTRACK_SHUTDOWN_ACK_SENT] = secs_to_jiffies(3),
50+
[SCTP_CONNTRACK_HEARTBEAT_SENT] = secs_to_jiffies(30),
5651
};
5752

5853
#define SCTP_FLAG_HEARTBEAT_VTAG_FAILED 1

samples/livepatch/livepatch-callbacks-busymod.c

+1-2
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,7 @@ static void busymod_work_func(struct work_struct *work)
4444
static int livepatch_callbacks_mod_init(void)
4545
{
4646
pr_info("%s\n", __func__);
47-
schedule_delayed_work(&work,
48-
msecs_to_jiffies(1000 * 0));
47+
schedule_delayed_work(&work, 0);
4948
return 0;
5049
}
5150

samples/livepatch/livepatch-shadow-fix1.c

+1-2
Original file line numberDiff line numberDiff line change
@@ -72,8 +72,7 @@ static struct dummy *livepatch_fix1_dummy_alloc(void)
7272
if (!d)
7373
return NULL;
7474

75-
d->jiffies_expire = jiffies +
76-
msecs_to_jiffies(1000 * EXPIRE_PERIOD);
75+
d->jiffies_expire = jiffies + secs_to_jiffies(EXPIRE_PERIOD);
7776

7877
/*
7978
* Patch: save the extra memory location into a SV_LEAK shadow

0 commit comments

Comments
 (0)