From: Paul Walmsley Date: Wed, 28 Jan 2009 19:08:41 +0000 (-0700) Subject: [ARM] OMAP3 clock: optimize DPLL rate rounding algorithm X-Git-Tag: sz_old_beta2~71 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=52cac925976dc86fe96f0e9c8d3ffff3f0c8dc44;p=pandora-kernel.git [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 put up with several test cycles of this patch - thanks Peter. linux-omap source commit is 6f6d82bb2f80fa20a841ac3e95a6f44a5a156188. Signed-off-by: Paul Walmsley Cc: Peter de Schrijver Signed-off-by: Tony Lindgren Signed-off-by: Russell King --- Reading git-diff-tree failed