Received: by 2002:a05:7412:bbc7:b0:fc:a2b0:25d7 with SMTP id kh7csp666087rdb; Thu, 1 Feb 2024 23:16:46 -0800 (PST) X-Google-Smtp-Source: AGHT+IHb+1G/l0OYuQZvtc7CE/9pro6BRS74bA4vNOooDcxi7+ZkfKL0eNSy42QQ90xsUFxkS8Lp X-Received: by 2002:a17:907:960c:b0:a35:3718:997c with SMTP id gb12-20020a170907960c00b00a353718997cmr1286954ejc.28.1706858206624; Thu, 01 Feb 2024 23:16:46 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706858206; cv=pass; d=google.com; s=arc-20160816; b=HF03XJBYAueiTrdwSG2bsbsRbm1yZ5A9dBDknMCEAjz29y1QgAavGmxMt/SoGBWMtO YAfBiXtu4u11j0FMd2pgizvLGqIzvxbq5HGYR3gLlTHcWvWcheh/NIbZ2e0JfCwQNQTN uoTc75xU35AM6+W2I9jVdkvH++DJhFdbzeRwqteWF+82IdlZxP24Lty1/c/NNXov5Adj IRIT8Ar8ySfr8Z7KrJCxbKnXeAPz3i+PpD8xJJ9bRujQCeUxkmOX2fSWX8mCz3/8zUk8 sGcm3XSMiyl/PO5jVe6VS6IQzlc6JXJtlRK4M7eBDui9My7ThsWptymZJnXbwxNuot6q yZug== 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=RtB8zABL3HoFaFUi5aC7kJtyk+ibMa3T1d10MsxZ5PQ=; fh=AgemfxrRGr56IJ7EL3dxHA5DhZWPHo7q9uDpm1rU+mk=; b=SkESikIug4WNCioX3KAfpWBDah2b4z5liql7RBByohY+0XF2Kpc9emSq7caPuwck8l 8KRkzkgFVbvn9mvcTRYBX8iBeD2zwO4kIN/0EUHh4SZcccla+2UcyvZYzPCgRyGhyLgQ 3e/PTb/lJL7QYRWycDAg5aY9s407P33MwrduxBCXtyafZjWLvZEox/jo6yUks9fib2em VvUf36235e7yLkD77zs+iANkGWl+Ol0JHuok6kSFzaCU5OuwlXNTp7KOrNeFvnlUrBpk 5+sMy6eRBtKfMCX2BjrGlQyHAAxKe6o/i/01rd5o+4XspfYuh2yoGrgQwZos/EOQvf/q +3Rg==; 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-49354-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-49354-linux.lists.archive=gmail.com@vger.kernel.org" X-Forwarded-Encrypted: i=1; AJvYcCVLGzssjVyqRTFFIhyvnCN90h8QLKXbZMfK/2pwSOwVdWw4I9LILjDi/hyhUX9CaHZLwvUwewvuaJh1T4wvZFQcZfzTQXvBrh9/JppUNg== Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id ca24-20020a170906a3d800b00a338fdda76fsi540697ejb.872.2024.02.01.23.16.46 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 01 Feb 2024 23:16:46 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-49354-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-49354-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-49354-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 60E4B1F24539 for ; Fri, 2 Feb 2024 07:16:46 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 15ECD17996; Fri, 2 Feb 2024 07:16:37 +0000 (UTC) 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 B73B817562; Fri, 2 Feb 2024 07:16:32 +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=1706858196; cv=none; b=cV/y3KUQLXJYIyoFJw75QKHXAhTtENUytG2/lvqGB42lLQrkJ/Ge/8lwvhGTJAWJk/TvfPCmri/yHpkykPirUJoomstxzc2zqig835s3DdpvokMnr2BE5tsiOCvFulMaLWZIIdzLliSSjBjlk0UPMS45xY/7+vRxB7JsMxDJuz0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706858196; c=relaxed/simple; bh=aAeYcxLLnb/t/SYbhPaewpAiyt6DK70tqwjVhH1Yw48=; h=From:To:CC:Subject:Date:Message-ID:MIME-Version:Content-Type; b=SwUetPlJGZSg3vWygkJTFC/1Vh98jSbywWhK7Z8HVkUkTbyC5KdUpb+rtmD+eZfiFgr27z1SU7SrJ+08rsR9rZ1wapfaIXwt5gJYHAE8KbOt3OKUBi6eIIBHau9z+4d7B1rjH7Qqy41qnvvgwGQXjT/Ib4PGKtjGscJ2n4J0Jgk= 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 YZS00130; Fri, 02 Feb 2024 15:16:30 +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:16:29 +0800 From: Bo Liu To: , CC: , , Bo Liu Subject: [PATCH] hwmon: (jc42) convert to use maple tree register cache Date: Fri, 2 Feb 2024 02:16:28 -0500 Message-ID: <20240202071628.40990-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: 2024202151630d81a363d5406a5b7d5d9639f532e3f43 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/jc42.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/hwmon/jc42.c b/drivers/hwmon/jc42.c index f958e830b23c..75dc25df0f8b 100644 --- a/drivers/hwmon/jc42.c +++ b/drivers/hwmon/jc42.c @@ -497,7 +497,7 @@ static const struct regmap_config jc42_regmap_config = { .writeable_reg = jc42_writable_reg, .readable_reg = jc42_readable_reg, .volatile_reg = jc42_volatile_reg, - .cache_type = REGCACHE_RBTREE, + .cache_type = REGCACHE_MAPLE, }; static int jc42_probe(struct i2c_client *client) -- 2.18.2