drm/radeon: prefer lower reference dividers
authorChristian König <christian.koenig@amd.com>
Mon, 6 May 2019 17:57:52 +0000 (19:57 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 11 Jun 2019 10:21:50 +0000 (12:21 +0200)
commite2acd3c183bc220fb80cf874a13115dea6ec6c4d
treef3ddeb94cc6fc4ef328b13e4c293c24cd5e53ca4
parent1a7df71d6f831860492a681bfd9c4ff4fe7453bd
drm/radeon: prefer lower reference dividers

commit 2e26ccb119bde03584be53406bbd22e711b0d6e6 upstream.

Instead of the closest reference divider prefer the lowest,
this fixes flickering issues on HP Compaq nx9420.

Bugs: https://bugs.freedesktop.org/show_bug.cgi?id=108514
Suggested-by: Paul Dufresne <dufresnep@gmail.com>
Signed-off-by: Christian König <christian.koenig@amd.com>
Acked-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Cc: stable@vger.kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/gpu/drm/radeon/radeon_display.c