commit | 7fc80b7bd682b47825e806018cca8ff7dc6bb55a | [log] [tgz] |
---|---|---|
author | Krzysztof Helt <krzysztof.h1@wp.pl> | Wed Jul 23 21:31:44 2008 -0700 |
committer | Linus Torvalds <torvalds@linux-foundation.org> | Thu Jul 24 10:47:41 2008 -0700 |
tree | d408bf73887f4788e0d5e70c91320fff1391f624 | |
parent | 5798712d608f5ebad994487748a2ccf3cc613d78 [diff] |
neofb: simplify clock calculation There is nothing to gain by converting value in kHz to fixed point MHz. Just calculate everything in kHz. A reorder of the loop allows reducing number of iterations (check if frequency is not too high already). Signed-off-by: Krzysztof Helt <krzysztof.h1@wp.pl> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>