From nobody Mon Feb 9 00:06:23 2026 Received: from ssh247.corpemail.net (ssh247.corpemail.net [210.51.61.247]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 0E10317597; Fri, 2 Feb 2024 07:18:05 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=210.51.61.247 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706858289; cv=none; b=dZaFW+vFOw9UpS1X/fOgKDpyfOrLoz1NDNqb1vClHDAoBAzEhadgVfFVOgBuxD76gc3GT/HCZ4f9FZmimgpPYw4EeLK2HVj6FlhZeaIBP83nxmcW+HXYl7z2p3O3Cc/T3MtzcobqQ17M83YqgVzak5DyPXDtM/XTmEuOnYbSQYQ= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706858289; c=relaxed/simple; bh=Kum7o1alLSvm1YoX3tw3PNjk3Tfex81WspETMVStbY0=; h=From:To:CC:Subject:Date:Message-ID:MIME-Version:Content-Type; b=KqrVNmeC59kLqAAAjDLQXcrNpdVt3HjwWOX57eevJSQkd8UabNfjjsVoysA+91OKMkPIxdsrIN1CwG4Rb4Nq3TzbocD8yW3I2mYXOVOC0pi5HLBw7+5HHt6slgaBwI+Jq6+qYE6EHQMFqu5SWSgOGASNeXLNAG4PKAeH9aZhUwc= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=inspur.com; spf=pass smtp.mailfrom=inspur.com; arc=none smtp.client-ip=210.51.61.247 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=inspur.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=inspur.com Received: from ssh247.corpemail.net by ssh247.corpemail.net ((D)) with ASMTP (SSL) id YZU00002; Fri, 02 Feb 2024 15:18:02 +0800 Received: from localhost.localdomain.com (10.73.45.222) by jtjnmail201605.home.langchao.com (10.100.2.5) with Microsoft SMTP Server id 15.1.2507.34; Fri, 2 Feb 2024 15:18:01 +0800 From: Bo Liu To: , CC: , , Bo Liu Subject: [PATCH] hwmon: (lm83) convert to use maple tree register cache Date: Fri, 2 Feb 2024 02:18:00 -0500 Message-ID: <20240202071800.41113-1-liubo03@inspur.com> X-Mailer: git-send-email 2.18.2 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 tUid: 20242021518026d7035affc6b10d694d2b5c3e46fb64f X-Abuse-Reports-To: service@corp-email.com Abuse-Reports-To: service@corp-email.com X-Complaints-To: service@corp-email.com X-Report-Abuse-To: service@corp-email.com Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" 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 --- drivers/hwmon/lm83.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/hwmon/lm83.c b/drivers/hwmon/lm83.c index 5befedca6abb..b333c9bde4e6 100644 --- a/drivers/hwmon/lm83.c +++ b/drivers/hwmon/lm83.c @@ -165,7 +165,7 @@ static bool lm83_regmap_is_volatile(struct device *dev,= unsigned int reg) static const struct regmap_config lm83_regmap_config =3D { .reg_bits =3D 8, .val_bits =3D 8, - .cache_type =3D REGCACHE_RBTREE, + .cache_type =3D REGCACHE_MAPLE, .volatile_reg =3D lm83_regmap_is_volatile, .reg_read =3D lm83_regmap_reg_read, .reg_write =3D lm83_regmap_reg_write, --=20 2.18.2