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

net: ieee802154: mrf24j40: 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>
Message-ID: <20240202064659.39434-1-liubo03@inspur.com>
Signed-off-by: Stefan Schmidt <stefan@datenfreihafen.org>

authored by

Bo Liu and committed by
Stefan Schmidt
36cc392d b0f413bc

+2 -2
+2 -2
drivers/net/ieee802154/mrf24j40.c
··· 388 388 .pad_bits = 1, 389 389 .write_flag_mask = MRF24J40_SHORT_WRITE, 390 390 .read_flag_mask = MRF24J40_SHORT_READ, 391 - .cache_type = REGCACHE_RBTREE, 391 + .cache_type = REGCACHE_MAPLE, 392 392 .max_register = MRF24J40_SHORT_NUMREGS, 393 393 .writeable_reg = mrf24j40_short_reg_writeable, 394 394 .readable_reg = mrf24j40_short_reg_readable, ··· 495 495 .pad_bits = 5, 496 496 .write_flag_mask = MRF24J40_LONG_ACCESS, 497 497 .read_flag_mask = MRF24J40_LONG_ACCESS, 498 - .cache_type = REGCACHE_RBTREE, 498 + .cache_type = REGCACHE_MAPLE, 499 499 .max_register = MRF24J40_LONG_NUMREGS, 500 500 .writeable_reg = mrf24j40_long_reg_writeable, 501 501 .readable_reg = mrf24j40_long_reg_readable,