aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorArtemy Kovalyov <[email protected]>2017-04-05 09:23:50 +0300
committerDoug Ledford <[email protected]>2017-04-25 15:40:28 -0400
commit3e7e1193e28a1428e857f3f44870ec2dbd615e6a (patch)
tree06f12414a3407f4d60b424b806c0451e0309d344 /tools/perf/scripts/python
parent8d2216be285135c7281e09dc07738b62782fad9c (diff)
IB: Replace ib_umem page_size by page_shift
Size of pages are held by struct ib_umem in page_size field. It is better to store it as an exponent, because page size by nature is always power-of-two and used as a factor, divisor or ilog2's argument. The conversion of page_size to be page_shift allows to have portable code and avoid following error while compiling on ARM: ERROR: "__aeabi_uldivmod" [drivers/infiniband/core/ib_core.ko] undefined! CC: Selvin Xavier <[email protected]> CC: Steve Wise <[email protected]> CC: Lijun Ou <[email protected]> CC: Shiraz Saleem <[email protected]> CC: Adit Ranadive <[email protected]> CC: Dennis Dalessandro <[email protected]> CC: Ram Amrani <[email protected]> Signed-off-by: Artemy Kovalyov <[email protected]> Signed-off-by: Leon Romanovsky <[email protected]> Acked-by: Ram Amrani <[email protected]> Acked-by: Shiraz Saleem <[email protected]> Acked-by: Selvin Xavier <[email protected]> Acked-by: Selvin Xavier <[email protected]> Acked-by: Adit Ranadive <[email protected]> Signed-off-by: Doug Ledford <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions