]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
regmap: core: Introduce register stride order
authorXiubo Li <lixiubo@cmss.chinamobile.com>
Mon, 4 Jan 2016 10:00:33 +0000 (18:00 +0800)
committerMark Brown <broonie@kernel.org>
Fri, 19 Feb 2016 16:11:23 +0000 (01:11 +0900)
commitca747be22fa57bbee50e34c220401160e8f2a07f
tree402e74745cc42672333891ca30232716c1b8eafe
parent92e963f50fc74041b5e9e744c330dca48e04f08d
regmap: core: Introduce register stride order

Since the register stride should always equal to 2^N, and bit rotation is
much faster than multiplication and division. So introducing the stride
order and using bit rotation to get the offset of the register from the
index to improve the performance.

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