Skip to content

Commit 49fc6ab

Browse files
author
Fox Snowpatch
committed
1 parent ad0be02 commit 49fc6ab

File tree

32 files changed

+92
-67
lines changed

32 files changed

+92
-67
lines changed

arch/arm/mach-pxa/sharpsl_pm.c

+3-3
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,9 @@
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 */
34+
#define SHARPSL_CHARGE_ON_TIME_INTERVAL (secs_to_jiffies(60)) /* 1 min */
35+
#define SHARPSL_CHARGE_FINISH_TIME (secs_to_jiffies(10*60)) /* 10 min */
36+
#define SHARPSL_BATCHK_TIME (secs_to_jiffies(15)) /* 15 sec */
3737
#define SHARPSL_BATCHK_TIME_SUSPEND (60*10) /* 10 min */
3838

3939
#define SHARPSL_WAIT_CO_TIME 15 /* 15 sec */

arch/powerpc/platforms/pseries/papr_scm.c

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

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

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

arch/s390/kernel/lgr.c

+2-1
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,8 @@ 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,
170+
jiffies + secs_to_jiffies(LGR_TIMER_INTERVAL_SECS));
170171
}
171172

172173
/*

arch/s390/kernel/time.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -656,12 +656,12 @@ static void stp_check_leap(void)
656656
if (ret < 0)
657657
pr_err("failed to set leap second flags\n");
658658
/* arm Timer to clear leap second flags */
659-
mod_timer(&stp_timer, jiffies + msecs_to_jiffies(14400 * MSEC_PER_SEC));
659+
mod_timer(&stp_timer, jiffies + secs_to_jiffies(14400));
660660
} else {
661661
/* The day the leap second is scheduled for hasn't been reached. Retry
662662
* in one hour.
663663
*/
664-
mod_timer(&stp_timer, jiffies + msecs_to_jiffies(3600 * MSEC_PER_SEC));
664+
mod_timer(&stp_timer, jiffies + secs_to_jiffies(3600));
665665
}
666666
}
667667

arch/s390/kernel/topology.c

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

376376
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/etnaviv/etnaviv_cmdbuf.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ int etnaviv_cmdbuf_init(struct etnaviv_cmdbuf_suballoc *suballoc,
100100
mutex_unlock(&suballoc->lock);
101101
ret = wait_event_interruptible_timeout(suballoc->free_event,
102102
suballoc->free_space,
103-
msecs_to_jiffies(10 * 1000));
103+
secs_to_jiffies(10));
104104
if (!ret) {
105105
dev_err(suballoc->dev,
106106
"Timeout waiting for cmdbuf space\n");

drivers/gpu/drm/xe/xe_device.c

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

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

517517
do {
518518
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/ethernet/netronome/nfp/nfp_net_common.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -2779,7 +2779,7 @@ static void nfp_net_netdev_init(struct nfp_net *nn)
27792779
break;
27802780
}
27812781

2782-
netdev->watchdog_timeo = msecs_to_jiffies(5 * 1000);
2782+
netdev->watchdog_timeo = secs_to_jiffies(5);
27832783

27842784
/* MTU range: 68 - hw-specific max */
27852785
netdev->min_mtu = ETH_MIN_MTU;

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))
@@ -3352,7 +3352,7 @@ lpfc_block_mgmt_io(struct lpfc_hba *phba, int mbx_action)
33523352
spin_unlock_irqrestore(&phba->hbalock, iflag);
33533353
if (mbx_action == LPFC_MBX_NO_WAIT)
33543354
return;
3355-
timeout = msecs_to_jiffies(LPFC_MBOX_TMO * 1000) + jiffies;
3355+
timeout = secs_to_jiffies(LPFC_MBOX_TMO) + jiffies;
33563356
spin_lock_irqsave(&phba->hbalock, iflag);
33573357
if (phba->sli.mbox_active) {
33583358
actcmd = phba->sli.mbox_active->u.mb.mbxCommand;
@@ -4939,14 +4939,14 @@ int lpfc_scan_finished(struct Scsi_Host *shost, unsigned long time)
49394939
stat = 1;
49404940
goto finished;
49414941
}
4942-
if (time >= msecs_to_jiffies(30 * 1000)) {
4942+
if (time >= secs_to_jiffies(30)) {
49434943
lpfc_printf_log(phba, KERN_INFO, LOG_INIT,
49444944
"0461 Scanning longer than 30 "
49454945
"seconds. Continuing initialization\n");
49464946
stat = 1;
49474947
goto finished;
49484948
}
4949-
if (time >= msecs_to_jiffies(15 * 1000) &&
4949+
if (time >= secs_to_jiffies(15) &&
49504950
phba->link_state <= LPFC_LINK_DOWN) {
49514951
lpfc_printf_log(phba, KERN_INFO, LOG_INIT,
49524952
"0465 Link down longer than 15 "
@@ -4960,7 +4960,7 @@ int lpfc_scan_finished(struct Scsi_Host *shost, unsigned long time)
49604960
if (vport->num_disc_nodes || vport->fc_prli_sent)
49614961
goto finished;
49624962
if (!atomic_read(&vport->fc_map_cnt) &&
4963-
time < msecs_to_jiffies(2 * 1000))
4963+
time < secs_to_jiffies(2))
49644964
goto finished;
49654965
if ((phba->sli.sli_flag & LPFC_SLI_MBOX_ACTIVE) != 0)
49664966
goto finished;
@@ -5194,8 +5194,8 @@ lpfc_vmid_poll(struct timer_list *t)
51945194
lpfc_worker_wake_up(phba);
51955195

51965196
/* 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));
51995199
}
52005200

52015201
/**

drivers/scsi/lpfc/lpfc_nportdisc.c

+4-4
Original file line numberDiff line numberDiff line change
@@ -914,7 +914,7 @@ lpfc_rcv_logo(struct lpfc_vport *vport, struct lpfc_nodelist *ndlp,
914914
(ndlp->nlp_state >= NLP_STE_ADISC_ISSUE ||
915915
ndlp->nlp_state <= NLP_STE_PRLI_ISSUE)) {
916916
mod_timer(&ndlp->nlp_delayfunc,
917-
jiffies + msecs_to_jiffies(1000 * 1));
917+
jiffies + secs_to_jiffies(1));
918918
spin_lock_irq(&ndlp->lock);
919919
ndlp->nlp_flag |= NLP_DELAY_TMO;
920920
spin_unlock_irq(&ndlp->lock);
@@ -1355,7 +1355,7 @@ lpfc_rcv_els_plogi_issue(struct lpfc_vport *vport, struct lpfc_nodelist *ndlp,
13551355
}
13561356

13571357
/* Put ndlp in npr state set plogi timer for 1 sec */
1358-
mod_timer(&ndlp->nlp_delayfunc, jiffies + msecs_to_jiffies(1000 * 1));
1358+
mod_timer(&ndlp->nlp_delayfunc, jiffies + secs_to_jiffies(1));
13591359
spin_lock_irq(&ndlp->lock);
13601360
ndlp->nlp_flag |= NLP_DELAY_TMO;
13611361
spin_unlock_irq(&ndlp->lock);
@@ -1975,7 +1975,7 @@ lpfc_cmpl_reglogin_reglogin_issue(struct lpfc_vport *vport,
19751975

19761976
/* Put ndlp in npr state set plogi timer for 1 sec */
19771977
mod_timer(&ndlp->nlp_delayfunc,
1978-
jiffies + msecs_to_jiffies(1000 * 1));
1978+
jiffies + secs_to_jiffies(1));
19791979
spin_lock_irq(&ndlp->lock);
19801980
ndlp->nlp_flag |= NLP_DELAY_TMO;
19811981
spin_unlock_irq(&ndlp->lock);
@@ -2798,7 +2798,7 @@ lpfc_rcv_prlo_npr_node(struct lpfc_vport *vport, struct lpfc_nodelist *ndlp,
27982798

27992799
if ((ndlp->nlp_flag & NLP_DELAY_TMO) == 0) {
28002800
mod_timer(&ndlp->nlp_delayfunc,
2801-
jiffies + msecs_to_jiffies(1000 * 1));
2801+
jiffies + secs_to_jiffies(1));
28022802
spin_lock_irq(&ndlp->lock);
28032803
ndlp->nlp_flag |= NLP_DELAY_TMO;
28042804
ndlp->nlp_flag &= ~NLP_NPR_ADISC;

drivers/scsi/lpfc/lpfc_nvme.c

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

drivers/scsi/lpfc/lpfc_sli.c

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

90259025
/* Start heart beat timer */
90269026
mod_timer(&phba->hb_tmofunc,
9027-
jiffies + msecs_to_jiffies(1000 * LPFC_HB_MBOX_INTERVAL));
9027+
jiffies + secs_to_jiffies(LPFC_HB_MBOX_INTERVAL));
90289028
clear_bit(HBA_HBEAT_INP, &phba->hba_flag);
90299029
clear_bit(HBA_HBEAT_TMO, &phba->hba_flag);
90309030
phba->last_completion_time = jiffies;
@@ -13335,7 +13335,7 @@ lpfc_sli_mbox_sys_shutdown(struct lpfc_hba *phba, int mbx_action)
1333513335
lpfc_sli_mbox_sys_flush(phba);
1333613336
return;
1333713337
}
13338-
timeout = msecs_to_jiffies(LPFC_MBOX_TMO * 1000) + jiffies;
13338+
timeout = secs_to_jiffies(LPFC_MBOX_TMO) + jiffies;
1333913339

1334013340
/* Disable softirqs, including timers from obtaining phba->hbalock */
1334113341
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
@@ -734,7 +734,7 @@ static int pm8001_init_sas_add(struct pm8001_hba_info *pm8001_ha)
734734
return -EIO;
735735
}
736736
time_remaining = wait_for_completion_timeout(&completion,
737-
msecs_to_jiffies(60*1000)); // 1 min
737+
secs_to_jiffies(60)); // 1 min
738738
if (!time_remaining) {
739739
kfree(payload.func_specific);
740740
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;

include/linux/jiffies.h

+13
Original file line numberDiff line numberDiff line change
@@ -526,6 +526,19 @@ static __always_inline unsigned long msecs_to_jiffies(const unsigned int m)
526526
}
527527
}
528528

529+
/**
530+
* secs_to_jiffies: - convert seconds to jiffies
531+
* @_secs: time in seconds
532+
*
533+
* Conversion is done by simple multiplication with HZ
534+
*
535+
* secs_to_jiffies() is defined as a macro rather than a static inline
536+
* function so it can be used in static initializers.
537+
*
538+
* Return: jiffies value
539+
*/
540+
#define secs_to_jiffies(_secs) ((_secs) * HZ)
541+
529542
extern unsigned long __usecs_to_jiffies(const unsigned int u);
530543
#if !(USEC_PER_SEC % HZ)
531544
static inline unsigned long _usecs_to_jiffies(const unsigned int u)

mm/kmemleak.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -1816,7 +1816,7 @@ static int kmemleak_scan_thread(void *arg)
18161816
* Wait before the first scan to allow the system to fully initialize.
18171817
*/
18181818
if (first_run) {
1819-
signed long timeout = msecs_to_jiffies(SECS_FIRST_SCAN * 1000);
1819+
signed long timeout = secs_to_jiffies(SECS_FIRST_SCAN);
18201820
first_run = 0;
18211821
while (timeout && !kthread_should_stop())
18221822
timeout = schedule_timeout_interruptible(timeout);
@@ -2202,7 +2202,7 @@ void __init kmemleak_init(void)
22022202
return;
22032203

22042204
jiffies_min_age = msecs_to_jiffies(MSECS_MIN_AGE);
2205-
jiffies_scan_wait = msecs_to_jiffies(SECS_SCAN_WAIT * 1000);
2205+
jiffies_scan_wait = secs_to_jiffies(SECS_SCAN_WAIT);
22062206

22072207
object_cache = KMEM_CACHE(kmemleak_object, SLAB_NOLEAKTRACE);
22082208
scan_area_cache = KMEM_CACHE(kmemleak_scan_area, SLAB_NOLEAKTRACE);

net/bluetooth/hci_event.c

-2
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,6 @@
4242
#define ZERO_KEY "\x00\x00\x00\x00\x00\x00\x00\x00" \
4343
"\x00\x00\x00\x00\x00\x00\x00\x00"
4444

45-
#define secs_to_jiffies(_secs) msecs_to_jiffies((_secs) * 1000)
46-
4745
/* Handle HCI Event packets */
4846

4947
static void *hci_ev_skb_pull(struct hci_dev *hdev, struct sk_buff *skb,

net/bluetooth/mgmt.c

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

212-
#define CACHE_TIMEOUT msecs_to_jiffies(2 * 1000)
212+
#define CACHE_TIMEOUT secs_to_jiffies(2)
213213

214214
#define ZERO_KEY "\x00\x00\x00\x00\x00\x00\x00\x00" \
215215
"\x00\x00\x00\x00\x00\x00\x00\x00"

0 commit comments

Comments
 (0)