IB/mlx4: Add mmap call to map the hardware clock
authorMatan Barak <matanb@mellanox.com>
Thu, 11 Jun 2015 13:35:26 +0000 (16:35 +0300)
committerDoug Ledford <dledford@redhat.com>
Fri, 12 Jun 2015 18:49:10 +0000 (14:49 -0400)
commit52033cfb5aab2a54e238e93c9e52f61c2c5708aa
tree2fa1c99afee51a719b168c7b3175cdce25bb4090
parent2528e33e680921d95092f83c4a64046744f111b3
IB/mlx4: Add mmap call to map the hardware clock

In order to read the HCA's cycle counter efficiently in
user space, we need to map the HCA's register.
This is done through mmap call.

Signed-off-by: Matan Barak <matanb@mellanox.com>
Signed-off-by: Or Gerlitz <ogerlitz@mellanox.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/hw/mlx4/main.c
drivers/net/ethernet/mellanox/mlx4/main.c
include/linux/mlx4/device.h