regcache: flat: Introduce register strider order
authorXiubo Li <lixiubo@cmss.chinamobile.com>
Mon, 4 Jan 2016 10:00:35 +0000 (18:00 +0800)
committerMark Brown <broonie@kernel.org>
Fri, 19 Feb 2016 16:12:32 +0000 (01:12 +0900)
commitce11020f0e82dbb18eb59b6f6ce92cc0410b353e
treefd4032d2861d5d06187419cb156cdcb5c47a577b
parent8b31ec5572f812acac36f3d02944ade76a8f51b9
regcache: flat: Introduce register strider order

Here we introduce regcache_flat_get_index(), which using register
stride order and bit rotation, will save some memory spaces for
flat cache. Though this will also lost some access performance,
since the bit rotation is used to get the index of the cache array,
and this could be ingored for memory I/O accessing.

Signed-off-by: Xiubo Li <lixiubo@cmss.chinamobile.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/base/regmap/regcache-flat.c