Received: by 2002:a05:7412:bbc7:b0:fc:a2b0:25d7 with SMTP id kh7csp667397rdb; Thu, 1 Feb 2024 23:20:25 -0800 (PST) X-Google-Smtp-Source: AGHT+IHm7V7MafjDWHWOQ6QxXpRMsvQqv11rkFf9V1uYM5OYQxJIu0jVB/5Otveo/wTbwxz8gHRD X-Received: by 2002:a2e:9556:0:b0:2cf:34b4:63de with SMTP id t22-20020a2e9556000000b002cf34b463demr4066705ljh.35.1706858425198; Thu, 01 Feb 2024 23:20:25 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706858425; cv=pass; d=google.com; s=arc-20160816; b=jGhjBZ3WettAE8oytyQT2j90donVmvoANVqGK7747N0zDa6/OE6g9FafczgynQKuXa +JkJeMElLZ9aVCKih4RvE4IeVSQ3X6YcHIpVV3XF/nOO2j0O3R0bDJpvbRJs5G+GL/5z V1Mr+KbLVd1fWBVb3HU4oEkJ58jJvaFxm/g09ofeYl0fhGElbRSS5nCs2xVnGyFd6vYi 83bBlJyWNS2XNgu1pQPFReAx/fUakL0WXV3kf5eT7hSGXKPMNkorpW7jVHEbkc/g+fNI QjPcPxgtOqpb1raZHeDPx0D9XKmbfbuAU/aZHE6kQVGVk9JWIGFjuQQqeqARVI13YkZX iZ5w== 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=fs7m+hTsXq7vpZMWyXTAOiMtLKegXjMrxS7IpsPY8eg=; fh=fK4U1k2Ge2fvd6tOrmtprBn3fQQQKn/2z0pY7Zs91Rg=; b=ELyDjYun5GH3ZY6ETwE8C0G9sO3adoRdU3fingAWox1oqgWZeTGj4RTPsTU1s/uv60 ZyQ98eqeows3PqYv0uUi4txsI0Om2NGejCNzoNHKL+h2MN5Szr90/WsiM3eKMWk2MA3X OX9O8jgHr7qgf1pdO626LD4s+CMJeht5hOkZcnwkiIbPMfeWeTORQsDroiDs6U7JT8Lp qTOOb6eneAm45OlITFo+OoPU3CHxROeY8b6NNSmJApBWP0F97S0n6YDN3OT4y6zVci8k rQNBvi3tBNv3MyfUT36bfiDLemymxrlE3nN9DE0YlP4tPk519jb19FnOYT0VAM2Y7lZI PcFg==; 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-49359-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-49359-linux.lists.archive=gmail.com@vger.kernel.org" X-Forwarded-Encrypted: i=1; AJvYcCWBuwWH8dlGrmXWUixvhhGSIx37uKcEFu1wrb6p5wZ13AMbWTfwQPspyN+wcu+Ya6DvsujYjKuHJCOiYTAj7Ct10Oe8dQxwu5d6azFUyA== Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id de23-20020a056402309700b0055fc7f8c840si537198edb.463.2024.02.01.23.20.25 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 01 Feb 2024 23:20:25 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-49359-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=inspur.com); spf=pass (google.com: domain of linux-kernel+bounces-49359-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-49359-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 am.mirrors.kernel.org (Postfix) with ESMTPS id E96641F277A9 for ; Fri, 2 Feb 2024 07:20:24 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 8511F1799B; Fri, 2 Feb 2024 07:20:17 +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 C29354C60; Fri, 2 Feb 2024 07:20:12 +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=1706858417; cv=none; b=rOPrVBJ88E7CLt54oAJg9aoSepgKLJJS5PtgqBpZZDcX36mYI7INyZ5ndtR2VaHdpR4dBk5THUCqDeIWVmzAYk7vsfWbXvDYajMyVdsXqFpH7HOe0F07lq+E1renCUPSU47/NcnyyV6BQSuDSi0y1LlbZJOiPJSD8RwFxTfnN1U= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706858417; c=relaxed/simple; bh=b5/YX2L+A41gJRV3oTdRuM+uovTXznd+6lM2Bfht5iU=; h=From:To:CC:Subject:Date:Message-ID:MIME-Version:Content-Type; b=g1d4T87FnFk2VtgUYSYz0SbjMEqQhmVLdeByTGzFdattlvDMUuOFLu+YNUaGwPMhRqDATD+dFgslPzi+CFGBUHBgEQhAUQbhQ6BAYcxX9XO0ftRfV0rEvZOtFk20hVrXufnj3ErkoBfmUX5hwvG94L2ZFKXu0mmDXFvyF6hxM8g= 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 YZW00009; Fri, 02 Feb 2024 15:20:09 +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:20:08 +0800 From: Bo Liu To: , CC: , , Bo Liu Subject: [PATCH] hwmon: (nct7802) convert to use maple tree register cache Date: Fri, 2 Feb 2024 02:20:07 -0500 Message-ID: <20240202072007.41316-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: 202420215200950bfaae5d74554043fb46bf5d002abaa 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/nct7802.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/hwmon/nct7802.c b/drivers/hwmon/nct7802.c index 024cff151c36..a0e664d5ebfe 100644 --- a/drivers/hwmon/nct7802.c +++ b/drivers/hwmon/nct7802.c @@ -1051,7 +1051,7 @@ static bool nct7802_regmap_is_volatile(struct device *dev, unsigned int reg) static const struct regmap_config nct7802_regmap_config = { .reg_bits = 8, .val_bits = 8, - .cache_type = REGCACHE_RBTREE, + .cache_type = REGCACHE_MAPLE, .volatile_reg = nct7802_regmap_is_volatile, }; -- 2.18.2