]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
OMAP3 clock: optimize DPLL rate rounding algorithm
authorPaul Walmsley <paul@pwsan.com>
Wed, 12 Nov 2008 18:51:01 +0000 (11:51 -0700)
committerTony Lindgren <tony@atomide.com>
Fri, 21 Nov 2008 23:51:15 +0000 (15:51 -0800)
commit6f6d82bb2f80fa20a841ac3e95a6f44a5a156188
treef53f44d935545d78786f65b59190426856fd96b2
parent4625dceb8583c02a6d67ededc9f6a8347b6b8cb7
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.

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>
arch/arm/mach-omap2/clock.c