diff options
| author | 2025-03-26 22:19:55 +0800 | |
|---|---|---|
| committer | 2025-04-07 15:03:25 -0300 | |
| commit | 2633ddff9b0f6f2a41f9f05cf18afacc029f8ef7 (patch) | |
| tree | 15a2df6837a32608138db9d54f1ebe01cf66c98b /include/uapi/linux/android/ssh:/git@git.zx2c4.com | |
| parent | RDMA/mlx5: convert timeouts to secs_to_jiffies() (diff) | |
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>
Diffstat (limited to 'include/uapi/linux/android/ssh:/git@git.zx2c4.com')
0 files changed, 0 insertions, 0 deletions
