Received: by 2002:ab2:5d18:0:b0:1ef:7a0f:c32d with SMTP id j24csp49335lqk; Fri, 8 Mar 2024 23:30:17 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCXtHnzCfOUBdxxi+nW6upVvPNCPIhiwuDA2Xn4tU6T/RT2+hzCBlWCXo/+0P0LbQDCNJvrE0LvWzZ/j7iQO3OmJVA2FtVPY6ycgQFps3g== X-Google-Smtp-Source: AGHT+IGO7K1Bx6VrFym1X+Okb/O9Mgott1qnNViVMo5rMLpEyTKl5f99BGM5CCsBFEZpzYHizf51 X-Received: by 2002:a05:6a20:244a:b0:1a1:80cb:c64d with SMTP id t10-20020a056a20244a00b001a180cbc64dmr1487067pzc.15.1709969416892; Fri, 08 Mar 2024 23:30:16 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709969416; cv=pass; d=google.com; s=arc-20160816; b=snsjEK7eRhzQZssaNUU/r5l9tjHXcEedu3Akh1HavGIFPeZRo0do/o4DCmmvbmDzUi C7LwC1033AjZKKkUGdJuYoyWFV7MQZN837k3rS9TAu/u/tEtSakPijuQ6igVKBnxKvc2 V0l3FZidS+7NS6cGbSsx5dl9RIrbWSF4/sB2kaqg2FVDMLdo+yqZo4p//hQsO4i3Qj4P f06A47ESjoadHEPLNfVcRqPlzxu3ZhS1mXbj5UfWldlACIaAvzUKztrpiY171JTKSXZ3 smJv0YkZvem3zXjaGEiEyO9lNdzhMGUDF7/lUelYC3rt5J/g9lnRKbv/bidvl4u6I/l5 orMA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=abuse-reports-to:tuid:content-transfer-encoding:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:message-id:date :subject:cc:to:from; bh=juAtLdCtoV8ihpLDonh6K71ClCc8U0rtOdYWNFGXles=; fh=TzqtK5doZwzQL9Xc7dzogLtxUvvNaaA8lKIx4jY3EfA=; b=nPv17L3/vMGHFHMEP0q5XxSisSZndsMu4pdL13i+6ch0Gg38tU4H1DeDJOEIdQG+wW amajRNUwSkm/bWok6l0IQy/fE0VZ337iSrLRXiWAXV2xGAPuwh5MyR/D+/E8UzeX31IU Lc2YwdtPErxy+AkKn3PsQutxGIXr/GLU3gNkYFRyFykT/VLQmE9sEa1FTYiZ5pMGrvT4 WiNpmv1rmmqA9x3JE+KpYmKIhkz2eeJE4p2zPfYb9+IAFOFXR3fnahBBlt4CJVi7WpEF fAKIh2W2l2LHp+2KZJ7jr7C4OaXl3tez4+otrR/5CCFHINEULUa26pgrFztGPML3uXae L8DA==; 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-97797-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-97797-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id o25-20020a637e59000000b005e47d608cbesi1033020pgn.134.2024.03.08.23.30.16 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 08 Mar 2024 23:30:16 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-97797-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-97797-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-97797-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 B0D78B20DC9 for ; Sat, 9 Mar 2024 07:30:01 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 8CB943716D; Sat, 9 Mar 2024 07:29:53 +0000 (UTC) Received: from unicom146.biz-email.net (unicom146.biz-email.net [210.51.26.146]) (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 BF7262E64C; Sat, 9 Mar 2024 07:29:46 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=210.51.26.146 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709969393; cv=none; b=lpnA4hsjcHY9VncfIjNXA+lKTXcRnb59a/H+OLXylQfUNObN67KzxQ1Hp0vqAFCrO5VKg69lnPuIBmtAOckvUA+FelE4FQ8zq0dndYhHq9T8LiX6rKoP0/GErNHX3Fw1O55RqDPJFz1JNywGUbNCLjGD5s9s516lsaLTGosqoSw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709969393; c=relaxed/simple; bh=IipyU9kP82Sm/RNw9p0vGM6fRgiNOM3/GrVwZPio/u4=; h=From:To:CC:Subject:Date:Message-ID:MIME-Version:Content-Type; b=PT1mNVED4KV68lwj7ToXmX8uE0JXQwkdSrXWwgzNanT6wruhSo4yXvEVvpSQ/druECY6VuYpk6fUH3e0/tIG3N2NqEG2ge36pZkO7GmwQ4jG7SFpm4jN7ErdjlH1JZZfr/HARZIINU0DqNaYeqKfuVndoDVOCIfMKG9+RHTuvt4= 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.146 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 unicom146.biz-email.net by unicom146.biz-email.net ((D)) with ASMTP (SSL) id FAL00131; Sat, 09 Mar 2024 15:28:31 +0800 Received: from localhost.localdomain (10.94.4.69) by jtjnmail201621.home.langchao.com (10.100.2.21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.35; Sat, 9 Mar 2024 15:28:32 +0800 From: wangkaiyuan To: , , CC: , , wangkaiyuan Subject: [PATCH] soc: qcom: icc-bwmon: Convert to use maple tree register cache Date: Sat, 9 Mar 2024 15:28:25 +0800 Message-ID: <20240309072825.45385-1-wangkaiyuan@inspur.com> X-Mailer: git-send-email 2.27.0 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: Jtjnmail201614.home.langchao.com (10.100.2.14) To jtjnmail201621.home.langchao.com (10.100.2.21) tUid: 20243091528313fcaa2262ccfc0804e20f92720baef1e 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: wangkaiyuan --- drivers/soc/qcom/icc-bwmon.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/soc/qcom/icc-bwmon.c b/drivers/soc/qcom/icc-bwmon.c index 656706259353..fb323b3364db 100644 --- a/drivers/soc/qcom/icc-bwmon.c +++ b/drivers/soc/qcom/icc-bwmon.c @@ -282,7 +282,7 @@ static const struct regmap_config msm8998_bwmon_regmap_cfg = { * Cache is necessary for using regmap fields with non-readable * registers. */ - .cache_type = REGCACHE_RBTREE, + .cache_type = REGCACHE_MAPLE, }; static const struct regmap_config msm8998_bwmon_global_regmap_cfg = { @@ -301,7 +301,7 @@ static const struct regmap_config msm8998_bwmon_global_regmap_cfg = { * Cache is necessary for using regmap fields with non-readable * registers. */ - .cache_type = REGCACHE_RBTREE, + .cache_type = REGCACHE_MAPLE, }; static const struct reg_field sdm845_cpu_bwmon_reg_fields[] = { @@ -369,7 +369,7 @@ static const struct regmap_config sdm845_cpu_bwmon_regmap_cfg = { * Cache is necessary for using regmap fields with non-readable * registers. */ - .cache_type = REGCACHE_RBTREE, + .cache_type = REGCACHE_MAPLE, }; /* BWMON v5 */ @@ -446,7 +446,7 @@ static const struct regmap_config sdm845_llcc_bwmon_regmap_cfg = { * Cache is necessary for using regmap fields with non-readable * registers. */ - .cache_type = REGCACHE_RBTREE, + .cache_type = REGCACHE_MAPLE, }; static void bwmon_clear_counters(struct icc_bwmon *bwmon, bool clear_all) -- 2.27.0