Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 233343
b: refs/heads/master
c: a4b40d5
h: refs/heads/master
i:
  233341: cc1a130
  233339: 5053b6e
  233335: d054296
  233327: 881961f
  233311: 939e60f
  233279: 44f0aa9
  233215: aee49e2
v: v3
  • Loading branch information
Alex Deucher authored and Dave Airlie committed Feb 14, 2011
1 parent 340f4a9 commit 9e514bc
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: bd91572e77013aad242e2d2d565bd730c043f8b8
refs/heads/master: a4b40d5d97f5c9ad0b7f4bf2818291ca184bb433
10 changes: 10 additions & 0 deletions trunk/drivers/gpu/drm/radeon/radeon_display.c
Original file line number Diff line number Diff line change
Expand Up @@ -793,6 +793,11 @@ static void avivo_get_fb_div(struct radeon_pll *pll,
tmp *= target_clock;
*fb_div = tmp / pll->reference_freq;
*frac_fb_div = tmp % pll->reference_freq;

if (*fb_div > pll->max_feedback_div)
*fb_div = pll->max_feedback_div;
else if (*fb_div < pll->min_feedback_div)
*fb_div = pll->min_feedback_div;
}

static u32 avivo_get_post_div(struct radeon_pll *pll,
Expand Down Expand Up @@ -826,6 +831,11 @@ static u32 avivo_get_post_div(struct radeon_pll *pll,
post_div--;
}

if (post_div > pll->max_post_div)
post_div = pll->max_post_div;
else if (post_div < pll->min_post_div)
post_div = pll->min_post_div;

return post_div;
}

Expand Down

0 comments on commit 9e514bc

Please sign in to comment.