Received: by 2002:ab2:620c:0:b0:1ef:ffd0:ce49 with SMTP id o12csp1378859lqt; Wed, 20 Mar 2024 02:00:31 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWEGOaMfPE1YRvFcZeVimupWmX09QrS0qKn+TXgVnS/kdUyeBL1QnS41QHJKnwPtSx1k6YQrPvtODLmMGC4tF+u9vcy2rNpS94HKJJnQQ== X-Google-Smtp-Source: AGHT+IEk2+Njg7iX3Qf6UiV2xR/OljjpIFQwLWPqSArWpvFkPQAYlSY70X9pSYjmdAX/axvfD04j X-Received: by 2002:a05:6122:4119:b0:4d4:504:800 with SMTP id ce25-20020a056122411900b004d405040800mr17586529vkb.6.1710925231128; Wed, 20 Mar 2024 02:00:31 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1710925231; cv=pass; d=google.com; s=arc-20160816; b=DB2kGkNfifHRsLngBSJPLAPC7KHQPu3hDoENRzlfdNzZeL7BDMfZXU0O99Gncot6R9 FzFACGihl51WbUxdKMZjiHgYhaALK3oD+TmEbJswvK4uiqXbmN+RIcUN7Ej3Y7MIneCo lS1LyKMJImiJRuqxUhZgg8phU7ANdA+F0FC5X4wkKcskp9+P/7hxiYTtCEolkP/BQPtQ muT0HylY7vW858RXvIRPRo2ypfAHOKjwfQa585ccsr26AGYDDWEVrWoqmhVO4t3MglTj 16I2EtdiiXxOqqW+VrKRkXhOjJGrcJF4WtQ5kQOYxWdIvTjzc5AFhKKBvrv3AwlebSnK v1HQ== 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=JxM+e9fRtt/6oJdPd7/+LxyTrhwy9vVg7QBXKkVQd/8=; fh=ylGxeYDzupWRersxMfuRoDdGzjRmuyBko7KC/8yNBnI=; b=JSb6SlKg8S5jUxrjI8UkZIR4YE9UTsE8/F50tlQ8DH5fFvYw0/JAPwEdODO9wC8BcC R3yZR6/iXM2z2ut86slCCWayQJsmhZXPL9xw8UdcnkLNuseKNzgy14BUk1wIOPcAmi3h daZroR204PcuSbJqtjqDfguydOegRozXAzDfSoeLGuCEpdF2g4+vkfYIwinmpNi8gopN LSYOYnlYsdGgqg3eylJxmOK8TA37nGiXjScqrVTsZk/T+bDd+8XYOoTf1f+phiOPstp2 RCz80KocQ4hPxyWRXLSaWkh0oBL9iJHw50jto0h2CzNaSQHYSxmaM7L6m6ZXN5357nGo RCWQ==; 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-108665-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-108665-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id 7-20020a0562140d4700b006960f7df172si6885926qvr.376.2024.03.20.02.00.30 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 20 Mar 2024 02:00:31 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-108665-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=inspur.com); spf=pass (google.com: domain of linux-kernel+bounces-108665-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-108665-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id D14861C22EC8 for ; Wed, 20 Mar 2024 09:00:30 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id E2953446B3; Wed, 20 Mar 2024 08:58:05 +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 84CF241211 for ; Wed, 20 Mar 2024 08:58:03 +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=1710925085; cv=none; b=kf+gQPISlpxsqjmRdrxgl6xLj+ugzWyagnuzQG2NMmYg8aMEcXSSgByag1ilXWENrNetj1rmcQ9TgU9Fqkd3uhh8B6PaThmDxh1dTcZv6YNoE6gLa+S6j7ari4H/bsdZD3g6AH0e2AgnTYOTBUJ9/x+a57DbdEq/m2Dc4pIXrBQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710925085; c=relaxed/simple; bh=sA9KN4gZJ9Q7fq569FG0ETO5QmmIlqo/42j1o9boRng=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=LXxZbaeUpo/MoVn81aiFzKBnwsZevYrqJwJ/aaKYw18B/b5hg/gQ/vqeSR2K8zlt2boSGPUI9ERBL6TZV/vyCZWmnj18n9yuNjQYsKPl6V4y770dVceK3miOT09Tta+IEf860R+4uMnreSUBBmNEpOGAuQW6sI9qo2oCjMzQv04= 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 RDA00157; Wed, 20 Mar 2024 16:57:57 +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:58 +0800 From: Bo Liu To: , , , , , CC: , , , Bo Liu Subject: [PATCH v1 11/13] regulator: tps51632: convert to use maple tree register cache Date: Wed, 20 Mar 2024 04:57:38 -0400 Message-ID: <20240320085740.4604-12-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: 2024320165757743a7b7d53ec78d719e9f0bb659cce6a 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/tps51632-regulator.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/regulator/tps51632-regulator.c b/drivers/regulator/tps51632-regulator.c index 5199e0437388..3a384bf9d2c5 100644 --- a/drivers/regulator/tps51632-regulator.c +++ b/drivers/regulator/tps51632-regulator.c @@ -199,7 +199,7 @@ static const struct regmap_config tps51632_regmap_config = { .readable_reg = is_read_reg, .volatile_reg = is_volatile_reg, .max_register = TPS51632_MAX_REG - 1, - .cache_type = REGCACHE_RBTREE, + .cache_type = REGCACHE_MAPLE, }; #if defined(CONFIG_OF) -- 2.18.2