aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorWambui Karuga <[email protected]>2019-10-25 12:49:07 +0300
committerDaniel Vetter <[email protected]>2019-11-04 18:17:36 +0100
commitb8c8a85995c5c14df8465bf1ab0b92a59641fa7c (patch)
treedeaa09614582890f97c8ee842c5ff3a9b808974f /tools/perf/scripts/python
parentff1fd2945c1a1274f769495b4ed5e83765683c62 (diff)
drm: use DIV_ROUND_UP helper macro for calculations
Replace open coded divisor calculations with the DIV_ROUND_UP kernel macro for better readability. Issue found using coccinelle: @@ expression n,d; @@ ( - ((n + d - 1) / d) + DIV_ROUND_UP(n,d) | - ((n + (d - 1)) / d) + DIV_ROUND_UP(n,d) ) Signed-off-by: Wambui Karuga <[email protected]> Acked-by: Julia Lawall <[email protected]> Signed-off-by: Daniel Vetter <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions