]> git.karo-electronics.de Git - karo-tx-linux.git/commit
ASoC: dapm: Only clear paths we've walked
authorRyo Tsutsui <Ryo.Tsutsui@wolfsonmicro.com>
Mon, 1 Apr 2013 11:50:01 +0000 (12:50 +0100)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Mon, 1 Apr 2013 21:10:20 +0000 (22:10 +0100)
commit1059ecfa0f1eb38eba592b2f939499504013b6d5
tree652d70f9557c6d60aecccaedc132d2c7b318f166
parent0e669246dcd11ad3ecb33a6170a963c4badaa10b
ASoC: dapm: Only clear paths we've walked

When clearing the walked flags there is no need to clear all paths, we
only need to clear the paths we actually walked. This means we can split
dapm_clear_walk() into input and output versions and rather than going
through all DAPM paths we can recurse down the path until we encounter
paths we have not yet walked.

This reduces the number of operations we need to perform and improves
cache locality.

[Pulled out of the vendor tree that the patch was originally generated
for by me, any bugs were introduced in that process -- broonie]

Signed-off-by: Ryo Tsutsui <Ryo.Tsutsui@wolfsonmicro.com>
Acked-by: Liam Girdwood <liam.r.girdwood@linux.intel.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
sound/soc/soc-dapm.c