Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 54949
b: refs/heads/master
c: d4a96b5
h: refs/heads/master
i:
  54947: cdcab7e
v: v3
  • Loading branch information
Krzysztof Helt authored and Linus Torvalds committed May 8, 2007
1 parent 77538f9 commit e335351
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 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: e5d809d774fc8aa76899bde3235afb046728feed
refs/heads/master: d4a96b53125c3d31266c05f2a8432d956dd26141
6 changes: 3 additions & 3 deletions trunk/drivers/video/pm2fb.c
Original file line number Diff line number Diff line change
Expand Up @@ -302,10 +302,10 @@ static void pm2v_mnp(u32 clk, unsigned char* mm, unsigned char* nn,
s32 delta = 1000;

*mm = *nn = *pp = 0;
for (n = 1; n; n++) {
for ( m = 1; m; m++) {
for ( m = 1; m < 128; m++) {
for (n = 2 * m + 1; n; n++) {
for ( p = 0; p < 2; p++) {
f = PM2_REFERENCE_CLOCK * n / (m * (1 << (p + 1)));
f = ( PM2_REFERENCE_CLOCK >> ( p + 1 )) * n / m;
if ( clk > f - delta && clk < f + delta ) {
delta = ( clk > f ) ? clk - f : f - clk;
*mm=m;
Expand Down

0 comments on commit e335351

Please sign in to comment.