]> git.baikalelectronics.ru Git - kernel.git/commit
regulator: Optimise out noop voltage changes
authorMark Brown <broonie@opensource.wolfsonmicro.com>
Thu, 16 Dec 2010 15:49:37 +0000 (15:49 +0000)
committerLiam Girdwood <lrg@slimlogic.co.uk>
Wed, 12 Jan 2011 14:33:05 +0000 (14:33 +0000)
commit9cc8882ab24c322764261a6726d44cbff436d0e6
treedb55c660ce1f3201135850510b11a09c1c16c221
parentd9c81985c3ab6024c370ffd62a934ffdd7ef938f
regulator: Optimise out noop voltage changes

If a consumer sets the same voltage range as is currently configured
for that consumer there's no need to run through setting the voltage
again. This pattern may occur with some CPUfreq implementations where
the same voltage range is used for multiple frequencies.

Reported-by: Saravana Kannan <skannan@codeaurora.org>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Signed-off-by: Liam Girdwood <lrg@slimlogic.co.uk>
drivers/regulator/core.c