]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitfd0096b132ec1dcce28a4dbe5416865ba669211a
tree8224512c2a347afe3bef0cb0ed5326ab569e9547
parent5ac6fc8b13123e3d202be4f926555bb7068e4bd5
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