Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 174604
b: refs/heads/master
c: 4b30b87
h: refs/heads/master
v: v3
  • Loading branch information
Dave Airlie committed Dec 2, 2009
1 parent e80652e commit 7660f32
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 7dde8a19656ddec769b609e8b5662aa7243b8b6a
refs/heads/master: 4b30b87042aa71ed8682e4df622a10456796fccd
8 changes: 8 additions & 0 deletions trunk/drivers/gpu/drm/radeon/radeon_clocks.c
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,10 @@ uint32_t radeon_legacy_get_engine_clock(struct radeon_device *rdev)

ref_div =
RREG32_PLL(RADEON_M_SPLL_REF_FB_DIV) & RADEON_M_SPLL_REF_DIV_MASK;

if (ref_div == 0)
return 0;

sclk = fb_div / ref_div;

post_div = RREG32_PLL(RADEON_SCLK_CNTL) & RADEON_SCLK_SRC_SEL_MASK;
Expand All @@ -70,6 +74,10 @@ static uint32_t radeon_legacy_get_memory_clock(struct radeon_device *rdev)

ref_div =
RREG32_PLL(RADEON_M_SPLL_REF_FB_DIV) & RADEON_M_SPLL_REF_DIV_MASK;

if (ref_div == 0)
return 0;

mclk = fb_div / ref_div;

post_div = RREG32_PLL(RADEON_MCLK_CNTL) & 0x7;
Expand Down
2 changes: 1 addition & 1 deletion trunk/drivers/gpu/drm/radeon/radeon_combios.c
Original file line number Diff line number Diff line change
Expand Up @@ -495,7 +495,7 @@ bool radeon_combios_get_clock_info(struct drm_device *dev)
uint16_t sclk, mclk;

if (rdev->bios == NULL)
return NULL;
return false;

pll_info = combios_get_table_offset(dev, COMBIOS_PLL_INFO_TABLE);
if (pll_info) {
Expand Down

0 comments on commit 7660f32

Please sign in to comment.