Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp82609pxb; Fri, 15 Oct 2021 00:51:42 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwZW7LUPo1UI20E/YJHyd7EJNIaEIeKEkCwV/qWCZK5cRmLMB47GfJEq7ZBFIpyEynuJCxd X-Received: by 2002:aa7:9250:0:b0:44c:27d1:7f0f with SMTP id 16-20020aa79250000000b0044c27d17f0fmr10254935pfp.41.1634284301887; Fri, 15 Oct 2021 00:51:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1634284301; cv=none; d=google.com; s=arc-20160816; b=I/yx/HnqSIBdsz8lJnIHlm94M6YQHGfdhzJ18eFcfw46qEQir33WOnyRoPblxRNQaQ 6OL/5XkV7MCo9yiSmifY8gNKvE3bcA4KUVm9pOv5e7RjMvLWIoOkozZPJpgRpqJfIF/u G1OZEwatvaqddaZmXnlYn7eLUp2uGJZRGE3AomlTP2It+nNbxflyPs0qWoKBP7Yc8Xea g2EC/E1rfeaoonLrwvd8rzvo7cjk8RiPx62ar2PIUk5Q3wcKuegSM0orP2OQLRvJ7g4j WBmTXZwv9SY+Wsp0UvxyukhgYLxH01QdwPdFPoa+TRoFp/PGShqwdjCXccbcmkNdi6mi XQbw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:message-id:date:to:cc:from:subject :references:in-reply-to:content-transfer-encoding:mime-version :dkim-signature; bh=YFpJ7iKpvybwT0EOJSs+FXxVB2B6kd+iVy4X1DpohAo=; b=UgKe+uWUlyhEfr8TgQ2qow3UBA0/dIQUwKfGjZhouY/9BMJjpX8TxK5/zpS2GA9fgz SVmklQZ4CgaeG9Br7mxACOicWYOg9yVj777kMMFKFAk8xS7t/pH/5d2unJjgMbPryPGo wpjZgedE6xjD/B6r7bD6a27qO4ug8hRPAn20dHaHxXyYVR1PIBhdiI50SkP3pOR6Bp/I my9ol2SYEKvldObM+9kmL5AGPwS1E9nMkGnkxXffXqm0fJ4YScq4sIWv7LhbuZFUh+GM DHtQApx4hgGVD1B+LzzN9Gv8j6MPTVsQhan9+/oRjxvdHk9QtzibaRa7tjwtlqcYcBXP kdjw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=V5TtEeM8; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id u2si5840934pjd.165.2021.10.15.00.51.28; Fri, 15 Oct 2021 00:51:41 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=V5TtEeM8; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234629AbhJOAq6 (ORCPT + 99 others); Thu, 14 Oct 2021 20:46:58 -0400 Received: from mail.kernel.org ([198.145.29.99]:57902 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234622AbhJOAq5 (ORCPT ); Thu, 14 Oct 2021 20:46:57 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 49747610D1; Fri, 15 Oct 2021 00:44:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1634258692; bh=YFpJ7iKpvybwT0EOJSs+FXxVB2B6kd+iVy4X1DpohAo=; h=In-Reply-To:References:Subject:From:Cc:To:Date:From; b=V5TtEeM8jFsgcGcuBW6Yi1RHRqq5/oODbkcc0S4WZpeDexJoHVu3ALcgDZyVJc1MG 6CIwbC2ZR/3XLrdymbDNipPSk307O8nLu4ExPCEqf7T6DuC4dGH1UFDDUS1K6ERb2T 1FU+l30gsJiFr/LU5tlArESe1Zc83JYofkMviOGkSPLROoTuRjzOjCKU8NiJSHrEzM WwhRnZzp6kBGQijR6YkXHuo2opcUTWULpQIbqcuso3n/atWh9U44xCkgoGk+LizOe1 dITQE1VW/HLdoxFCv4xBimgyntfX45zGjTRzA9d5i9nOMflmRAW+pSJCtFPm4hxUED bPJ1w67C9pkNg== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable In-Reply-To: <20211005065948.10092-1-mark-pk.tsai@mediatek.com> References: <20211005065948.10092-1-mark-pk.tsai@mediatek.com> Subject: Re: [PATCH] clk: make clk_core_lookup faster by using clk name hash From: Stephen Boyd Cc: mark-pk.tsai@mediatek.com, yj.chiang@mediatek.com, matthias.bgg@gmail.com, linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org To: Mark-PK Tsai , mturquette@baylibre.com Date: Thu, 14 Oct 2021 17:44:51 -0700 Message-ID: <163425869104.1688384.2477307279117424281@swboyd.mtv.corp.google.com> User-Agent: alot/0.9.1 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Quoting Mark-PK Tsai (2021-10-04 23:59:49) > Compare hash value before strcmp the full name to make > clk_core_lookup faster. >=20 > It make clk driver probe 30 percent faster on the platform > have 1483 registered clks and average clock name length 20. Why is clk_core_lookup() a fast path for you?