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

Lines changed: 4 additions & 4 deletions
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

Lines changed: 1 addition & 1 deletion
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

Lines changed: 1 addition & 1 deletion
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

Lines changed: 2 additions & 2 deletions
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

Lines changed: 1 addition & 1 deletion
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

Lines changed: 1 addition & 1 deletion
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

Lines changed: 1 addition & 2 deletions
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

Lines changed: 1 addition & 1 deletion
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

Lines changed: 1 addition & 1 deletion
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

Lines changed: 2 additions & 4 deletions
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
*/

0 commit comments

Comments
 (0)