Skip to content

Commit a8adf21

Browse files
wangkaiyuanandersson
authored andcommitted
soc: qcom: icc-bwmon: Convert to use maple tree register cache
The maple tree register cache is based on a much more modern data structure than the rbtree cache and makes optimisation choices which are probably more appropriate for modern systems than those made by the rbtree cache. Signed-off-by: wangkaiyuan <wangkaiyuan@inspur.com> Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> Link: https://lore.kernel.org/r/20240309072825.45385-1-wangkaiyuan@inspur.com Signed-off-by: Bjorn Andersson <andersson@kernel.org>
1 parent e6f3dac commit a8adf21

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

drivers/soc/qcom/icc-bwmon.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -282,7 +282,7 @@ static const struct regmap_config msm8998_bwmon_regmap_cfg = {
282282
* Cache is necessary for using regmap fields with non-readable
283283
* registers.
284284
*/
285-
.cache_type = REGCACHE_RBTREE,
285+
.cache_type = REGCACHE_MAPLE,
286286
};
287287

288288
static const struct regmap_config msm8998_bwmon_global_regmap_cfg = {
@@ -301,7 +301,7 @@ static const struct regmap_config msm8998_bwmon_global_regmap_cfg = {
301301
* Cache is necessary for using regmap fields with non-readable
302302
* registers.
303303
*/
304-
.cache_type = REGCACHE_RBTREE,
304+
.cache_type = REGCACHE_MAPLE,
305305
};
306306

307307
static const struct reg_field sdm845_cpu_bwmon_reg_fields[] = {
@@ -369,7 +369,7 @@ static const struct regmap_config sdm845_cpu_bwmon_regmap_cfg = {
369369
* Cache is necessary for using regmap fields with non-readable
370370
* registers.
371371
*/
372-
.cache_type = REGCACHE_RBTREE,
372+
.cache_type = REGCACHE_MAPLE,
373373
};
374374

375375
/* BWMON v5 */
@@ -446,7 +446,7 @@ static const struct regmap_config sdm845_llcc_bwmon_regmap_cfg = {
446446
* Cache is necessary for using regmap fields with non-readable
447447
* registers.
448448
*/
449-
.cache_type = REGCACHE_RBTREE,
449+
.cache_type = REGCACHE_MAPLE,
450450
};
451451

452452
static void bwmon_clear_counters(struct icc_bwmon *bwmon, bool clear_all)

0 commit comments

Comments
 (0)