Received: by 2002:a05:7412:bbc7:b0:fc:a2b0:25d7 with SMTP id kh7csp2868290rdb; Mon, 5 Feb 2024 23:18:14 -0800 (PST) X-Google-Smtp-Source: AGHT+IEtzvX4xXk236KWLjtaHKW7Ygk9mltR7sVMhMarzAZOb14VTaLbh8wLJSJpDYQ/iPQPOAh+ X-Received: by 2002:ac2:424a:0:b0:511:18f5:947a with SMTP id m10-20020ac2424a000000b0051118f5947amr1082485lfl.65.1707203894657; Mon, 05 Feb 2024 23:18:14 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707203894; cv=pass; d=google.com; s=arc-20160816; b=ewkxT2uWSg5Qms8uA8K645TNYszM8mV7ceo8FlG44FqFSTK11M/6L+dQapOrxmZgEW woAh5X6CNGI8+Ceb2aITIoZOgbrKrsxs5wmPes5BXQlbKiUebDd7BnwdVqmRJF1KLN6U iro6UV1KIxHIp/T9LAr/lNDhRd/GBK9r0T+E5s6o9FNcDTBP1MdWiVffZJTiP9FsOoRB KyNIp0bOGyZYy0+64pnnfF4Wb98QZPHiOruB8jalsImpHKGtsH6ziGQhHI9VfKXJnlbo QEL9t5lxy5BMhg+HqA//f3iez4BR3DEOUOVz5/I9Y01CFeac0Beah75SycRtJTK3pS+w ndSA== 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:references:in-reply-to:message-id:date:subject :cc:to:from; bh=4SsRErQ4ErRSyYY57oqHLfspVO1/9q4NE8famwDyn9A=; fh=Nd5mihjw18cKjTraVd/0KtVa2/zNS1zcrY4OB1lQqRk=; b=zWk7ckIOQgPiwYrNlamFhENLe0d/plDm+N9WbpQS57Edo5WKkRVKzZOHcStsbDm2MB z6ys0O4dZXoelwyraI/x5L7tE8ifUfdFnRiWzDuDqmWhaCdmQima0SUBFPeEBBmvtG03 ieF0WyMUU88skiGYIRJx59QK/9BeCi4UTSL4euPk7Dby3t8anan6sqQcfPBpsMUnpVnV UmpImrOp0wpQbPDNC3uq+MCZBLJfSFtIy0fCzasN+Q8Y84mz1VTNMDxltLtX69lJM0MJ Us9nRXC8hVA6Wpym7WRV/bwx98BOAzL3jXxyx8cc8fXfdeRgthLHF02aizBqXkG3zMnN Bbhw==; 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-54405-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-54405-linux.lists.archive=gmail.com@vger.kernel.org" X-Forwarded-Encrypted: i=1; AJvYcCV6tBKyTSyX3UeOUN7Lhy5waGAbzMRHo9kNDY50Wm3fjBxBNd9uTtesVYzMUo143cuQIRTIm3oPlgUn7JBf14f8sHWcC3SxoplixESG3w== Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id lj6-20020a170906f9c600b00a37da6faeeesi775244ejb.334.2024.02.05.23.18.14 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 05 Feb 2024 23:18:14 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-54405-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-54405-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-54405-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 4BFE01F236E2 for ; Tue, 6 Feb 2024 07:18:14 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 979AD12D76B; Tue, 6 Feb 2024 07:14:00 +0000 (UTC) Received: from ssh248.corpemail.net (ssh248.corpemail.net [210.51.61.248]) (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 3F79E12D170; Tue, 6 Feb 2024 07:13:58 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=210.51.61.248 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707203640; cv=none; b=SUenbZHJH1M3AbD/9QYR+qPikHwEdmyr5Mo4qlXRJf2epz/0Jt26zukFGEWtJPL3Gjg1JTuMN8HT3pJNStgazmOFmZtJK2fIeKugS+Jd3k6dyN4bJtH7ehCHcaz6NQM6kSOSq3j7p6GtoaVV8d1ccZ0ruRdvAC6fGL3qkDJiWQI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707203640; c=relaxed/simple; bh=1xFFpjUDnBCvfA1+zvqmhj13i06Lg81ycRJpW7ySwGI=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=UmQwGrKMz42W8CA8Awb+kK94J7dBDfYiKgNrztIOTrJOizigHJ52rjPchxYThE439erjmxSJXntsSi5My6RkdMtHSE+sCnRZ0wD/gSnw5eXmXpQbrIflr2ZEuSIakCEPPIdfYfu4JIvxIroaD0x+IWJEe5E2mE3TK2edtW9cDB0= 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.248 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 ssh248.corpemail.net by ssh248.corpemail.net ((D)) with ASMTP (SSL) id CZT00052; Tue, 06 Feb 2024 15:13:52 +0800 Received: from localhost.localdomain.com (10.73.45.222) by jtjnmail201602.home.langchao.com (10.100.2.2) with Microsoft SMTP Server id 15.1.2507.34; Tue, 6 Feb 2024 15:13:51 +0800 From: Bo Liu To: , , , , , , , , , CC: , , , , , , Bo Liu Subject: [PATCH 17/18] mfd: stpmic1: convert to use maple tree register cache Date: Tue, 6 Feb 2024 02:13:13 -0500 Message-ID: <20240206071314.8721-18-liubo03@inspur.com> X-Mailer: git-send-email 2.18.2 In-Reply-To: <20240206071314.8721-1-liubo03@inspur.com> References: <20240206071314.8721-1-liubo03@inspur.com> 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: 2024206151352f896163049d9fd171e5b4ab608ea0b1a 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/mfd/stpmic1.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/mfd/stpmic1.c b/drivers/mfd/stpmic1.c index c5128fe96cc7..d8a603d95aa6 100644 --- a/drivers/mfd/stpmic1.c +++ b/drivers/mfd/stpmic1.c @@ -63,7 +63,7 @@ static const struct regmap_access_table stpmic1_volatile_table = { static const struct regmap_config stpmic1_regmap_config = { .reg_bits = 8, .val_bits = 8, - .cache_type = REGCACHE_RBTREE, + .cache_type = REGCACHE_MAPLE, .max_register = PMIC_MAX_REGISTER_ADDRESS, .rd_table = &stpmic1_readable_table, .wr_table = &stpmic1_writeable_table, -- 2.18.2