Received: by 2002:ab2:620c:0:b0:1ef:ffd0:ce49 with SMTP id o12csp1378320lqt; Wed, 20 Mar 2024 01:59:17 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWOPeRlIDSipr0zcnYnNmMOoddKUN5Gh77X+4mi1+mZUNjmUAmjjOOaVUNpvncNFDXmR6Wkvd1J0GifTOpSt4Obi51wNsoZRa6noSnI9g== X-Google-Smtp-Source: AGHT+IG4S3v/hYugp4drj2ITYDzkJOIAILbf9GLcws067QSGaM4p1Ms5cYebXhZV69CGcPvVj6Xf X-Received: by 2002:a05:6402:1768:b0:56b:a03c:4eb with SMTP id da8-20020a056402176800b0056ba03c04ebmr1919989edb.31.1710925157731; Wed, 20 Mar 2024 01:59:17 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1710925157; cv=pass; d=google.com; s=arc-20160816; b=nQ1ZwZ/Zk1zkNTA8tdm4r2A9wu3I7XTPhKRzL7W9L0gfO0jOu4J93HvBSu1eLvolEx hhStWHewJt4AN0u0VjXwnaA1iApUrtzdwXgSluyfn/OCcBduRksYFtpVXRWydBxuKVof PQiMx4g8Hy7LODFpI+FjFZoSKPd2DtfG3IQ7LaQO7liqTfhPN4dqti6L/f8Qs2zXEZP+ vk15pUeQuNe7QwX32uhto5NLXZpOq3sBpAAWAjKtUGy0qzp5eyKEiRnB0fcvD1X6/IaR xy3yLGnWmH+TTSNnO8s2s0DGHm9SR50tj4o2RfiweftwazDxG1elaZpzhqK8TfmNsSD3 BqAg== 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=VHrMP/Te7GMh+xS9Wur86ok3W1iGWSFd5lYQe06Wg7o=; fh=ylGxeYDzupWRersxMfuRoDdGzjRmuyBko7KC/8yNBnI=; b=gVCyww7j2eWzrCLDPrR3FxFURQ3IEdg7OKn8okMnXkdzrW6sl0DUJAHNxH6VA2GnZL Y9xp5gMHqDDLNkKZB8tB3M5z3lhGB0qBgQw35b02d55SdLVaaHEGfPKLcl05TlKmW8at kSQEjME8LP8L27fSaL7s9peK0APfbj5Ytw8RthwUlf7BvgBh0eHd165C//9SbiQq5K99 NY1LTZDbgG7L7svgWPjR5/3rpy0Of/78+PRj4GX5G9Nh2JnjZPkQM62age/O4K0LWuY0 xxRKvNmQD5+CgKzVKo99HjfVtCf5TvIBs3CgV2T2NiTlc+w5J6nfMq+4Q0w/p13K2/TF Mi0Q==; 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-108659-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-108659-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id r18-20020a056402235200b00568ab2bcafdsi5694147eda.359.2024.03.20.01.59.17 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 20 Mar 2024 01:59:17 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-108659-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=inspur.com); spf=pass (google.com: domain of linux-kernel+bounces-108659-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-108659-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 7634B1F2189E for ; Wed, 20 Mar 2024 08:59:17 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 9E2883EA9C; Wed, 20 Mar 2024 08:57:59 +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 5FB3F3C068 for ; Wed, 20 Mar 2024 08:57:57 +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=1710925079; cv=none; b=b1saOP1Za+EHn1wIFv2uknJga2huUVNUMdhL+cn+btJVsCNYPRg5twlcfm0Z4p0MGCgNR8t5Oj6JRAQYxIhIsRDZtkYankFZD7yeTXwxU5ZbsGO+OMzlhOZ+Wojxci88CQhudGtVb0u05YFtI55BIgErXhjzxtbTk96XSPAlFS4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710925079; c=relaxed/simple; bh=2OfcfejzeCb9iN88vVI/mQ9F7QENDQRERFqXIhXcFoc=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=Z8qPVKCnhg5v9yeTBirPD9djU+VsQXqzhUvGtmMrqfP18nDqR8LeFG67ktfkpqK2qzP9ovuyQhZ+XpyQokpZ/bUqmSszS/BTgnUEPb/UJQQMGvRtkvirInvTygHDtiJpJqJsPHbfZollBFXutqdtzF5eIBihscYuf6F72Z+5T/o= 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 RDA00052; Wed, 20 Mar 2024 16:57:52 +0800 Received: from localhost.localdomain (10.94.17.92) by jtjnmail201610.home.langchao.com (10.100.2.10) with Microsoft SMTP Server id 15.1.2507.35; Wed, 20 Mar 2024 16:57:53 +0800 From: Bo Liu To: , , , , , CC: , , , Bo Liu Subject: [PATCH v1 07/13] regulator: pf8x00: convert to use maple tree register cache Date: Wed, 20 Mar 2024 04:57:34 -0400 Message-ID: <20240320085740.4604-8-liubo03@inspur.com> X-Mailer: git-send-email 2.18.2 In-Reply-To: <20240320085740.4604-1-liubo03@inspur.com> References: <20240320085740.4604-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: 202432016575236fe51fead87bdfab5f671ce3ee858c1 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/regulator/pf8x00-regulator.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/regulator/pf8x00-regulator.c b/drivers/regulator/pf8x00-regulator.c index b0781d9a1058..9fd8e0949b32 100644 --- a/drivers/regulator/pf8x00-regulator.c +++ b/drivers/regulator/pf8x00-regulator.c @@ -142,7 +142,7 @@ static const struct regmap_config pf8x00_regmap_config = { .reg_bits = 8, .val_bits = 8, .max_register = PF8X00_PAGE_SELECT, - .cache_type = REGCACHE_RBTREE, + .cache_type = REGCACHE_MAPLE, }; /* VLDOx output: 1.5V to 5.0V */ -- 2.18.2