Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

mfd: rk8xx: 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: Bo Liu <liubo03@inspur.com>
Link: https://lore.kernel.org/r/20240206071314.8721-13-liubo03@inspur.com
Signed-off-by: Lee Jones <lee@kernel.org>

authored by

Bo Liu and committed by
Lee Jones
21ff89b9 6c93d555

+1 -1
+1 -1
drivers/mfd/rk8xx-spi.c
··· 34 34 .reg_bits = 16, 35 35 .val_bits = 8, 36 36 .max_register = RK806_BUCK_RSERVE_REG5, 37 - .cache_type = REGCACHE_RBTREE, 37 + .cache_type = REGCACHE_MAPLE, 38 38 .volatile_table = &rk806_volatile_table, 39 39 }; 40 40