]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commit
[ARM] OMAP3 clock: optimize DPLL rate rounding algorithm
authorPaul Walmsley <paul@pwsan.com>
Wed, 28 Jan 2009 19:08:41 +0000 (12:08 -0700)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Sun, 8 Feb 2009 17:50:34 +0000 (17:50 +0000)
commit85a5f78d2b15a2e73b6486a24b77bb3ab67d5bbc
tree6ea454fb3e0a26ede82ea2c3e0d881758b41c0fc
parentb32450409847dddf060a468707212d3493df4f63
[ARM] OMAP3 clock: optimize DPLL rate rounding algorithm

The previous DPLL rate rounding algorithm counted the divider (N) down
from the maximum to 1.  Since we currently use a broad DPLL rate
tolerance, and lower N values are more power-efficient, we can often
bypass several iterations through the loop by counting N upwards from
1.

Peter de Schrijver <peter.de-schrijver@nokia.com> put up with several
test cycles of this patch - thanks Peter.

linux-omap source commit is 6f6d82bb2f80fa20a841ac3e95a6f44a5a156188.

Signed-off-by: Paul Walmsley <paul@pwsan.com>
Cc: Peter de Schrijver <peter.de-schrijver@nokia.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
arch/arm/mach-omap2/clock.c