diff options
author | Xiubo Li <lixiubo@cmss.chinamobile.com> | 2016-01-04 18:00:33 +0800 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2016-02-20 01:11:23 +0900 |
commit | ca747be22fa57bbee50e34c220401160e8f2a07f (patch) | |
tree | 402e74745cc42672333891ca30232716c1b8eafe /drivers/infiniband | |
parent | 92e963f50fc74041b5e9e744c330dca48e04f08d (diff) | |
download | linux-ca747be22fa57bbee50e34c220401160e8f2a07f.tar.bz2 |
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>
Diffstat (limited to 'drivers/infiniband')
0 files changed, 0 insertions, 0 deletions