OSDN Git Service

RDMA/mlx5: Use get_zeroed_page() for clock_info
authorJason Gunthorpe <jgg@mellanox.com>
Tue, 16 Apr 2019 11:07:29 +0000 (14:07 +0300)
committerJason Gunthorpe <jgg@mellanox.com>
Wed, 24 Apr 2019 16:40:50 +0000 (13:40 -0300)
commitddcdc368b1033e19fd3a5f750752e10e28a87826
tree8224512c2a347afe3bef0cb0ed5326ab569e9547
parent67f269b37f9b4d52c5e7f97acea26c0852e9b8a1
RDMA/mlx5: Use get_zeroed_page() for clock_info

get_zeroed_page() returns a virtual address for the page which is better
than allocating a struct page and doing a permanent kmap on it.

Cc: stable@vger.kernel.org
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
Reviewed-by: Haggai Eran <haggaie@mellanox.com>
Signed-off-by: Leon Romanovsky <leonro@mellanox.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
drivers/infiniband/hw/mlx5/main.c
drivers/net/ethernet/mellanox/mlx5/core/lib/clock.c
include/linux/mlx5/driver.h