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: Alex Deucher <alexdeucher@gmail.com> Signed-off-by: Dave Airlie <airlied@redhat.com>
This commit is contained in:
parent
947bfc8304
commit
38678d3557
1 changed files with 2 additions and 2 deletions
|
@ -56,7 +56,7 @@ uint32_t radeon_legacy_get_engine_clock(struct radeon_device *rdev)
|
||||||
else if (post_div == 3)
|
else if (post_div == 3)
|
||||||
sclk >>= 2;
|
sclk >>= 2;
|
||||||
else if (post_div == 4)
|
else if (post_div == 4)
|
||||||
sclk >>= 4;
|
sclk >>= 3;
|
||||||
|
|
||||||
return sclk;
|
return sclk;
|
||||||
}
|
}
|
||||||
|
@ -86,7 +86,7 @@ uint32_t radeon_legacy_get_memory_clock(struct radeon_device *rdev)
|
||||||
else if (post_div == 3)
|
else if (post_div == 3)
|
||||||
mclk >>= 2;
|
mclk >>= 2;
|
||||||
else if (post_div == 4)
|
else if (post_div == 4)
|
||||||
mclk >>= 4;
|
mclk >>= 3;
|
||||||
|
|
||||||
return mclk;
|
return mclk;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue