]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: Reduce the number of neigbours we mark dirty when updating power
authorMark Brown <broonie@opensource.wolfsonmicro.com>
Mon, 3 Oct 2011 21:36:57 +0000 (22:36 +0100)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Tue, 4 Oct 2011 15:50:21 +0000 (16:50 +0100)
commita0b6dbea11455002018654ffdff66557b612320b
tree0c8352c5495db26e53b695f356be424f0ba75bbe
parentf9c35b228cbaa9f41ce4de6c4cd04ff31b4bec23
ASoC: Reduce the number of neigbours we mark dirty when updating power

If two widgets are not currently connected then there is no need to
propagate a power state change between them as we mark the affected
widgets when we change a connection. Similarly if a neighbour widget is
already in the state being set for the current widget then there is no
need to recheck.

On one system I tested this gave:

           Power    Path   Neighbour
Before:    114      1066   1327
After:     106      970    1186

which is an improvement, although relatively small.

Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
sound/soc/soc-dapm.c