aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorFelix Kuehling <Felix.Kuehling@amd.com>2017-11-06 14:52:28 -0500
committerOded Gabbay <oded.gabbay@gmail.com>2017-11-06 14:52:28 -0500
commit115c8c4104bab4c435e0eaf7ffd5aabaf2adbbd2 (patch)
treecd7e4739c549107ae2972478ac25227e0b83c555 /tools/perf/scripts/python
parentdrm/amdkfd: Hardware DWORD size is 4 bytes (diff)
downloadlinux-115c8c4104bab4c435e0eaf7ffd5aabaf2adbbd2.tar.gz
linux-115c8c4104bab4c435e0eaf7ffd5aabaf2adbbd2.zip
drm/amdkfd: Use order_base_2 to get log2 of buffes sizes
Replace (ffs(size) - 1) with order_base_2(size) as a more straight forward way to get log2 of buffer sizes. Signed-off-by: Felix Kuehling <Felix.Kuehling@amd.com> Reviewed-by: Alex Deucher <alexander.deucher@amd.com> Signed-off-by: Oded Gabbay <oded.gabbay@gmail.com>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions