IB/core: Create get_perf_mad function in sysfs.c
authorChristoph Lameter <cl@linux.com>
Mon, 21 Dec 2015 14:20:27 +0000 (08:20 -0600)
committerDoug Ledford <dledford@redhat.com>
Wed, 23 Dec 2015 20:58:30 +0000 (15:58 -0500)
commit35c4cbb178119bcacc720f54d32711da020805d5
tree96ab33165540505b5fc67221b9d8ab4c1ee8004a
parentc09befcbb2839420a13926ce04cde15d92ea338d
IB/core: Create get_perf_mad function in sysfs.c

Create a new function to retrieve performance management
data from the existing code in get_pma_counter().

Reviewed-by: Hal Rosenstock <hal@mellanox.com>
Signed-off-by: Christoph Lameter <cl@linux.com>
Reviewed-by: Ira Weiny <ira.weiny@intel.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/core/sysfs.c