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

hwmon: (sch5627) 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/20240202072039.41419-1-liubo03@inspur.com
Signed-off-by: Guenter Roeck <linux@roeck-us.net>

authored by

Bo Liu and committed by
Guenter Roeck
3d8e02bd 23c7029f

+1 -1
+1 -1
drivers/hwmon/sch5627.c
··· 116 116 .val_bits = 8, 117 117 .wr_table = &sch5627_tunables_table, 118 118 .rd_table = &sch5627_tunables_table, 119 - .cache_type = REGCACHE_RBTREE, 119 + .cache_type = REGCACHE_MAPLE, 120 120 .use_single_read = true, 121 121 .use_single_write = true, 122 122 .can_sleep = true,