Received: by 2002:ab2:620c:0:b0:1ef:ffd0:ce49 with SMTP id o12csp37148lqt; Sun, 17 Mar 2024 23:42:35 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVWAOjlz1JJVYtAFeuL3GrdozOwDw5uZhXOfDH8KqoTK1zTZYp/8ogniq3HkZqs6xAxRpUM8RjLSEFRcjtyLqd8QUh1Ni1uWfQbitk/aA== X-Google-Smtp-Source: AGHT+IGIK5jbTMNqU2WLi5D8U0rFcBgTNCGEZeO84PCIZxzh4b/RdKczTlcmDPDTQszVySwygMU6 X-Received: by 2002:a17:906:ee8e:b0:a46:bdac:6a92 with SMTP id wt14-20020a170906ee8e00b00a46bdac6a92mr1576418ejb.64.1710744155461; Sun, 17 Mar 2024 23:42:35 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1710744155; cv=pass; d=google.com; s=arc-20160816; b=qMaYlz5PHWQJfImXLrv64WaZDsb0lAqKiscjTijVSA7aSUB7aQzZIA/mKd7YMTn1O3 50Pt5b6Os7WjxFnlxMMGWqs0OAfj3oCaOtQbBodnR/4Qu8wSyJRCAJLTYxBEMxNXozNl wOYIxjPUVsPm1Z7OV6eiRpP+GxLwj9AvCID/t775sDBR3RxjQGKdtvxf9hSmkThnjR2B W9L0807JgQ3/3983u6uPCIDfacbu4L/GuvbyfLX9YofcGSotehk9nHJrjsNvQVm3vHRH T47WpyS3eLaxttHHAJue1cTsH6WAdUTP+kNzu9HXZZB3ig0mv9O786j/Orf5F6Yh4AwY ymFA== 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=jLHNr3MFhr71LL4KQxYf98Fb6i1cRczJ4ST+HJAz93I=; fh=3s6yfeLCbVHgOpaNYQZvSNV1Wfx7B+BEtOQaU+vmhfw=; b=HAicr/IleXtBy+yAS58mJTdaMiwZZW9ctLdb4Sh0u4PR55oH9gMdTdMlDP2k5HZUtc hz+VKK8bNl32KkOFlNW1c08WUtsw0q19/JJhZaeTPGd6xLIRjLBKZsduUJM2HDbS/Ckc Fp01j9kYqxuZ5AfSMnlnPiUPiHRswFTJVjfPhtc0+X8tFyav+2IfC/oscuM5t/JhMWv9 EQFXDHyX4srsclV4wA5jLmwybA7cJDqjeehe7fCzWJ9H+Uck5ZE6RON/cK2ocDNgFMKd skPvo7BT1KqtVp6w8MZPtYVkwoKM116q6mNw+YQSJc42ESfg0oaDtv0xt0T3mdD8nZAz QzuA==; 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-105749-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-105749-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id d11-20020a1709067f0b00b00a4531dfb191si4259855ejr.84.2024.03.17.23.42.35 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 17 Mar 2024 23:42:35 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-105749-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-105749-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-105749-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 33E7D1F21660 for ; Mon, 18 Mar 2024 06:42:35 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id EEA0822089; Mon, 18 Mar 2024 06:42:27 +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 78C1622612; Mon, 18 Mar 2024 06:42:22 +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=1710744147; cv=none; b=S9OftS8H0Rg4HpWrGsPP2OVh89fwO/tqFO3PondUYZWlTNtPCklheS0XwyzlZ3JJPz+n8ms0SmPzlbRPMfNzvHtBiZ57LU9RUQQrVKsxZgupA/2diD+xbfenejLgh79BGIlP4FePqrYxxX4PRBa5RKouEAQHx8nsvULZYu3W9iY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710744147; c=relaxed/simple; bh=PWYCjG1RUX4B3xxYUQthNnqRe0G2F1gmxMOFgQ5o2vg=; h=From:To:CC:Subject:Date:Message-ID:MIME-Version:Content-Type; b=C+E+j7MDyBUVTg2SieYxijdU+aTTG7VarRFFUIKysQ3KtDKt8uwy9v1M0D47bm+u8zK/iiu9l//aB+/4WgZHPZhkdCMLV9ASSw58ZdL3bGxB6+J4F98NUylHN+MZRy2VIsYr5OtgqCy95y5/CM4ftE+gKpIh1hxZBA59U8A7OAc= 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 OZI00019; Mon, 18 Mar 2024 14:42:19 +0800 Received: from localhost.localdomain (10.94.10.188) by jtjnmail201603.home.langchao.com (10.100.2.3) with Microsoft SMTP Server id 15.1.2507.35; Mon, 18 Mar 2024 14:42:18 +0800 From: wangkaiyuan To: , , , CC: , , wangkaiyuan Subject: [PATCH 2/2] tty: serial: sc16is7xx: convert to use maple tree register cache Date: Mon, 18 Mar 2024 14:42:16 +0800 Message-ID: <20240318064216.1765-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 tUid: 2024318144219cf7f534fda99d27d1e15aa6df0c5cfc9 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/tty/serial/sc16is7xx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/tty/serial/sc16is7xx.c b/drivers/tty/serial/sc16is7xx.c index 929206a9a6e1..410b772cdbb3 100644 --- a/drivers/tty/serial/sc16is7xx.c +++ b/drivers/tty/serial/sc16is7xx.c @@ -1696,7 +1696,7 @@ static struct regmap_config regcfg = { .reg_bits = 5, .pad_bits = 3, .val_bits = 8, - .cache_type = REGCACHE_RBTREE, + .cache_type = REGCACHE_MAPLE, .volatile_reg = sc16is7xx_regmap_volatile, .precious_reg = sc16is7xx_regmap_precious, .writeable_noinc_reg = sc16is7xx_regmap_noinc, -- 2.27.0