[PATCH 0/4] iio: accel: convert to use maple tree register cache

Bo Liu posted 4 patches 10 months, 1 week ago
drivers/iio/accel/bma400_core.c       | 2 +-
drivers/iio/accel/bmi088-accel-core.c | 2 +-
drivers/iio/accel/kionix-kx022a.c     | 4 ++--
drivers/iio/accel/msa311.c            | 2 +-
4 files changed, 5 insertions(+), 5 deletions(-)
[PATCH 0/4] iio: accel: convert to use maple tree register cache
Posted by Bo Liu 10 months, 1 week ago
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.

Bo Liu (4):
  iio: accel: msa311: convert to use maple tree register cache
  iio: accel: bma400: convert to use maple tree register cache
  iio: accel: bmi088: convert to use maple tree register cache
  iio: accel: kx022a: convert to use maple tree register cache

 drivers/iio/accel/bma400_core.c       | 2 +-
 drivers/iio/accel/bmi088-accel-core.c | 2 +-
 drivers/iio/accel/kionix-kx022a.c     | 4 ++--
 drivers/iio/accel/msa311.c            | 2 +-
 4 files changed, 5 insertions(+), 5 deletions(-)

-- 
2.31.1
Re: [PATCH 0/4] iio: accel: convert to use maple tree register cache
Posted by Jonathan Cameron 10 months ago
On Wed, 12 Feb 2025 02:52:19 -0500
Bo Liu <liubo03@inspur.com> wrote:

> 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.
> 
> Bo Liu (4):
>   iio: accel: msa311: convert to use maple tree register cache
>   iio: accel: bma400: convert to use maple tree register cache
>   iio: accel: bmi088: convert to use maple tree register cache
>   iio: accel: kx022a: convert to use maple tree register cache
> 
>  drivers/iio/accel/bma400_core.c       | 2 +-
>  drivers/iio/accel/bmi088-accel-core.c | 2 +-
>  drivers/iio/accel/kionix-kx022a.c     | 4 ++--
>  drivers/iio/accel/msa311.c            | 2 +-
>  4 files changed, 5 insertions(+), 5 deletions(-)
> 
These are all fairly small register maps so I doubt it makes much
real difference.   Still there is the possibility these get copied
into a driver with a much larger regmap, so fair enough to tidy these
up.  Applied to the togreg branch of iio.git and pushed out as testing
for 0-day to take a first look.

Thanks,

Jonathan