Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 38678d35 authored by Alex Deucher's avatar Alex Deucher Committed by Dave Airlie
Browse files

drm/radeon/kms: fix legacy get_engine/memory clock



Fix a bad shift in the post div.

Should fix fdo bug 26145

Signed-off-by: default avatarAlex Deucher <alexdeucher@gmail.com>
Signed-off-by: default avatarDave Airlie <airlied@redhat.com>
parent 947bfc83
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -56,7 +56,7 @@ uint32_t radeon_legacy_get_engine_clock(struct radeon_device *rdev)
	else if (post_div == 3)
		sclk >>= 2;
	else if (post_div == 4)
		sclk >>= 4;
		sclk >>= 3;

	return sclk;
}
@@ -86,7 +86,7 @@ uint32_t radeon_legacy_get_memory_clock(struct radeon_device *rdev)
	else if (post_div == 3)
		mclk >>= 2;
	else if (post_div == 4)
		mclk >>= 4;
		mclk >>= 3;

	return mclk;
}