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

mfd: ac100: 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-2-liubo03@inspur.com
Signed-off-by: Lee Jones <lee@kernel.org>

authored by

Bo Liu and committed by
Lee Jones
ed9fdff5 6abc896c

+1 -1
+1 -1
drivers/mfd/ac100.c
··· 72 72 .wr_table = &ac100_writeable_table, 73 73 .volatile_table = &ac100_volatile_table, 74 74 .max_register = AC100_RTC_GP(15), 75 - .cache_type = REGCACHE_RBTREE, 75 + .cache_type = REGCACHE_MAPLE, 76 76 }; 77 77 78 78 static struct mfd_cell ac100_cells[] = {