2
0
mirror of git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git synced 2025-09-04 20:19:47 +08:00
linux/drivers/infiniband/hw/mlx4
Peng Jiang 2633ddff9b RDMA: Replace msecs_to_jiffies with secs_to_jiffies for timeout
In drivers/infiniband/hw/mlx4/mcg.c and drivers/infiniband/hw/mlx5/mr.c,
`msecs_to_jiffies` is used to convert milliseconds to jiffies.
For constant milliseconds, using `msecs_to_jiffies` introduces additional
computational overhead. For example, it is unnecessary to check
if m > jiffies_to_msecs(MAX_JIFFY_OFFSET) or (int)m < 0 for constants,
while using `secs_to_jiffies` can avoid these extra calculations.

Link: https://patch.msgid.link/r/20250326221955611qu6Ix3Pt5WgKvhL6sTySX@zte.com.cn
Signed-off-by: Peng Jiang <jiang.peng9@zte.com.cn>
Signed-off-by: Ye Xingchen <ye.xingchen@zte.com.cn>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
2025-04-07 15:03:25 -03:00
..
ah.c RDMA: Restore ability to fail on AH destroy 2020-09-09 13:57:22 -03:00
alias_GUID.c RDMA/mlx4: Simplify an alloc_ordered_workqueue() invocation 2024-08-23 11:37:49 -03:00
cm.c RDMA/mlx4: Avoid flush_scheduled_work() usage 2022-05-20 11:21:00 -03:00
cq.c RDMA/mlx4: Use ib_umem_find_best_pgsz() to calculate MTT size 2024-12-10 04:08:04 -05:00
doorbell.c RDMA: Use the sg_table directly and remove the opencoded version from umem 2021-08-24 19:52:40 -03:00
Kconfig treewide: replace '---help---' in Kconfig files with 'help' 2020-06-14 01:57:21 +09:00
mad.c RDMA/mlx4: Simplify an alloc_ordered_workqueue() invocation 2024-08-23 11:37:49 -03:00
main.c RDMA/mlx4: Support report_port_event() ops 2024-12-25 03:39:46 -05:00
Makefile treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00
mcg.c RDMA: Replace msecs_to_jiffies with secs_to_jiffies for timeout 2025-04-07 15:03:25 -03:00
mlx4_ib.h RDMA/mlx4: Use ib_umem_find_best_pgsz() to calculate MTT size 2024-12-10 04:08:04 -05:00
mr.c RDMA/mlx4: Use DMA iterator to write MTT 2024-12-10 04:08:12 -05:00
qp.c RDMA/mlx4: Use ib_umem_find_best_pgsz() to calculate MTT size 2024-12-10 04:08:04 -05:00
srq.c RDMA/mlx4: remove redundant assignment to variable nreq 2022-02-01 10:55:43 -04:00
sysfs.c IB/mlx4: Fix the size of a buffer in add_port_entries() 2023-09-23 21:53:24 +03:00