From: Dimitris Papastamos Date: Thu, 19 May 2011 12:45:30 +0000 (+0100) Subject: ASoC: soc-cache: Cache a pointer to the last accessed rbnode X-Git-Tag: v3.1-rc1~271^2~2^2~147 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7e146b55866d1176f80439fdc2be2915147468b3;p=pandora-kernel.git 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 Acked-by: Liam Girdwood Signed-off-by: Mark Brown --- Reading git-diff-tree failed