diff options
| author | Wambui Karuga <[email protected]> | 2019-10-25 12:49:07 +0300 |
|---|---|---|
| committer | Daniel Vetter <[email protected]> | 2019-11-04 18:17:36 +0100 |
| commit | b8c8a85995c5c14df8465bf1ab0b92a59641fa7c (patch) | |
| tree | deaa09614582890f97c8ee842c5ff3a9b808974f /tools/perf/scripts/python/bin/stackcollapse-report | |
| parent | ff1fd2945c1a1274f769495b4ed5e83765683c62 (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/bin/stackcollapse-report')
0 files changed, 0 insertions, 0 deletions