amdgpu/dc: use kernel ilog2 for log_2.
authorDave Airlie <airlied@redhat.com>
Tue, 3 Oct 2017 03:49:42 +0000 (13:49 +1000)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 6 Oct 2017 17:00:27 +0000 (13:00 -0400)
commit23d433fabef852e82053186b60710d138f727284
tree0d42278c97594efbdca7a669e992f776c02c2c12
parent4ee67c71b89948289eb5c55f1a19281be61178e5
amdgpu/dc: use kernel ilog2 for log_2.

This should produce the same result.

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>
drivers/gpu/drm/amd/display/dc/basics/conversion.c
drivers/gpu/drm/amd/display/dc/basics/conversion.h