diff options
author | Dimitris Papastamos <dp@opensource.wolfsonmicro.com> | 2011-05-19 13:45:30 +0100 |
---|---|---|
committer | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2011-05-20 11:22:06 +0100 |
commit | 7e146b55866d1176f80439fdc2be2915147468b3 (patch) | |
tree | 78409086ae8f445e6e8ce9e0997df3523a4f647a /sound/last.c | |
parent | 0944cc392e9a41dd36b65b2f8cb31dff437a9fdb (diff) | |
download | linux-7e146b55866d1176f80439fdc2be2915147468b3.tar.gz |
ASoC: soc-cache: Cache a pointer to the last accessed rbnode
Whenever we are doing a read or a write through the rbtree code, we'll
cache a pointer to the rbnode. To avoid looking up the register
everytime we do a read or a write, we first check if it can be found in
the cached register block, otherwise we traverse the rbtree and finally
cache the rbnode for future use.
Signed-off-by: Dimitris Papastamos <dp@opensource.wolfsonmicro.com>
Acked-by: Liam Girdwood <lrg@ti.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Diffstat (limited to 'sound/last.c')
0 files changed, 0 insertions, 0 deletions