Received: by 2002:a05:7412:bbc7:b0:fc:a2b0:25d7 with SMTP id kh7csp672095rdb; Thu, 1 Feb 2024 23:33:29 -0800 (PST) X-Google-Smtp-Source: AGHT+IGGWuAWkWeK8Al+mTuWSaEPyqYLSffirQJllBpNrgstGQAiNK2r/5wKfEZtPvzO+M4vQfmm X-Received: by 2002:a25:aaad:0:b0:dc2:4da9:be4b with SMTP id t42-20020a25aaad000000b00dc24da9be4bmr8105657ybi.33.1706859209294; Thu, 01 Feb 2024 23:33:29 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706859209; cv=pass; d=google.com; s=arc-20160816; b=YEfnHSZndBk/CeOLps6SBygHxYpfYpfFakzesb3DPUHgmp4XY/ZZcOdoqPVsPwUjt+ yUMZSwcrZBHgEEePTTDeOpcRJB9mrobJOnsG7vVnJDRDNoWJOrJDaN2qrWzzHPaN8dQg fQLaVt4rpWOrwty5ji0dgoC6Ar338XXV4JZZwCEVnzTayveA56uV+qrWxguZ8ap07bAF 8XLm2FA+stcazGZOys5ZsU1W3BUwATma/hE0ZGg3Bnc7nHbusJaimi+9vnooM0SaoixB Zb9dW0aWyMWR1SxBg8Sn/SS0g5uV4d5odZYkxebwEWI2Lkl4lxA2muP0isktzrrVuna1 QIUg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=abuse-reports-to:tuid:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:message-id:date:subject:cc:to:from; bh=JfE9qOTj2jfrFCq/RzoPVBxhPdoS0BdWvhyY6w3upy4=; fh=OH3Ja+2Y4F83xW1BrIyEu6ouvmxthh7b4Yt/9mzqswY=; b=s0MwS253jdaVXYqFoKmZrH+TROQFZFv1ZS93Lg2YqG/KSjoqB7gtUekWVDRV3dgjml fkr0QGnsCfX1Vug4qwQuT0mKresvCEdDq65z80eYqKIEE+QbNvulmOlAfn9/V4K/iXZE YDpSzLDwcCp4qBXO6Q8UqApiYLvCoyJE3twZ+wKWYywdBE2aaPkvb7W4OQyZqsII7ORb SUr4IX2Rw4zo44FVfabIDNH7GueJAPaUrLCi5BD7nkYDCTuyiGFcf0BFtl9hILpCI/2A SbCuHKGWulOxXUscWPyPmvQ6JjthaCVy8P4H3SI3QWt1fN5/ag6dmjMh4Tz2+KW87QTd v1CQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=inspur.com); spf=pass (google.com: domain of linux-kernel+bounces-49363-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-49363-linux.lists.archive=gmail.com@vger.kernel.org" X-Forwarded-Encrypted: i=1; AJvYcCUg2+ZpVv8WeJGLUgzEaSBJHho5dLDqI+m1U2CFzQZyvWgr7DZamyISK7ADgsxGW+TNQ7jsfZoyl2IWrm2rdOJ8m7YeXtaJbZEf1DiYEQ== Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id i19-20020a631313000000b005c5e2165e37si1162218pgl.125.2024.02.01.23.33.28 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 01 Feb 2024 23:33:29 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-49363-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=inspur.com); spf=pass (google.com: domain of linux-kernel+bounces-49363-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-49363-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id 1ECC6B218CB for ; Fri, 2 Feb 2024 07:22:54 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 46966179A8; Fri, 2 Feb 2024 07:22:45 +0000 (UTC) Received: from unicom145.biz-email.net (unicom145.biz-email.net [210.51.26.145]) (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 74A8617998; Fri, 2 Feb 2024 07:22:42 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=210.51.26.145 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706858564; cv=none; b=eTAHO8pIpXoOvaHkfI9LrIHf1QF+gi45eYJ3DGHpfYEcmyDWUR1jFm2r5+nfUDdEfeh23cvchSm4szJVOjAXVEPbhn6g3LJeB+owqci/rKL92y1qsiuf6Pi1UjGoo7G7fV43VAeX/hFb4vzWUxUstbfBfNexfzuIFkRhp10CMVo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706858564; c=relaxed/simple; bh=VoQqbRu16rEJ8qlra3eB+muBUWplkAHGaTdPZMDU8RA=; h=From:To:CC:Subject:Date:Message-ID:MIME-Version:Content-Type; b=E/Cwvd8nHtf/eK2sKhLmLCftGQmLeZlEzSHzWZlJFAc3Ryiqo1vjuMi00QBN2iESTBHno3nHXAVjDxWkdAWrr3HMgoJIdNxVvkiwPzJWzkLQJ6YVnE+vDwF9ioAbfayBqbHP3koMP11oOFFDNHCXb8nolYCjeeHo+VQHNkq96xE= 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.26.145 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 unicom145.biz-email.net by unicom145.biz-email.net ((D)) with ASMTP (SSL) id YZY00137; Fri, 02 Feb 2024 15:22:37 +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:22:36 +0800 From: Bo Liu To: , CC: , , Bo Liu Subject: [PATCH] hwmon: (tmp401) convert to use maple tree register cache Date: Fri, 2 Feb 2024 02:22:35 -0500 Message-ID: <20240202072235.41614-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 Content-Type: text/plain tUid: 20242021522379caa3bd455eee71f31d339256167edeb 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 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/tmp401.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/hwmon/tmp401.c b/drivers/hwmon/tmp401.c index 91f2314568cf..df1b45a62e80 100644 --- a/drivers/hwmon/tmp401.c +++ b/drivers/hwmon/tmp401.c @@ -256,7 +256,7 @@ static int tmp401_reg_write(void *context, unsigned int reg, unsigned int val) static const struct regmap_config tmp401_regmap_config = { .reg_bits = 8, .val_bits = 16, - .cache_type = REGCACHE_RBTREE, + .cache_type = REGCACHE_MAPLE, .volatile_reg = tmp401_regmap_is_volatile, .reg_read = tmp401_reg_read, .reg_write = tmp401_reg_write, -- 2.18.2