summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/amd/display/dc/dml/dml_common_defs.c
diff options
context:
space:
mode:
authorDave Airlie <airlied@redhat.com>2017-09-29 17:13:31 +1000
committerAlex Deucher <alexander.deucher@amd.com>2017-10-21 16:53:03 -0400
commit299f27fd370f34cb6e22e2ffb84b61e91dd6a4c1 (patch)
tree904a3d174d322edb30fb10d25c07efce0a5d366d /drivers/gpu/drm/amd/display/dc/dml/dml_common_defs.c
parentb2484b6237ef3ed60af0400027c053ec973b60cc (diff)
amdgpu/dc: inline dml_round_to_multiple
turns out to be a win to inline this. Signed-off-by: Dave Airlie <airlied@redhat.com> Reviewed-by: Harry Wentland <harry.wentland@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/display/dc/dml/dml_common_defs.c')
-rw-r--r--drivers/gpu/drm/amd/display/dc/dml/dml_common_defs.c19
1 files changed, 0 insertions, 19 deletions
diff --git a/drivers/gpu/drm/amd/display/dc/dml/dml_common_defs.c b/drivers/gpu/drm/amd/display/dc/dml/dml_common_defs.c
index 1683514ed0e3..b953b02a1512 100644
--- a/drivers/gpu/drm/amd/display/dc/dml/dml_common_defs.c
+++ b/drivers/gpu/drm/amd/display/dc/dml/dml_common_defs.c
@@ -40,23 +40,4 @@ double dml_round(double a)
return floor;
}
-unsigned int dml_round_to_multiple(
- unsigned int num,
- unsigned int multiple,
- bool up)
-{
- unsigned int remainder;
-
- if (multiple == 0)
- return num;
-
- remainder = num % multiple;
- if (remainder == 0)
- return num;
-
- if (up)
- return (num + multiple - remainder);
- else
- return (num - remainder);
-}