Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp2356779imu; Thu, 24 Jan 2019 11:17:56 -0800 (PST) X-Google-Smtp-Source: ALg8bN7H9aQPgWiBU+kqM3cjGIMXD0QIYzk32uREFJhXDv7stYTI4212QVdkN5n3ZnoegESdf972 X-Received: by 2002:a63:ec4b:: with SMTP id r11mr6962268pgj.44.1548357475958; Thu, 24 Jan 2019 11:17:55 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1548357475; cv=none; d=google.com; s=arc-20160816; b=NRBy+SP36j5LIovUGXBdazryWiF0Yn+arlbj5+ToLc9X6hp8d6tDzbZ7ZvgCPIEldh 4UEMnnIq5huuyccqNPDvk3SH+HyY3VXxyPH/26oTo1YHgjOqmxt80xcxdfRh6zbIa1mh 9zfpRu17YsDB7AQlBd4EyGhm8XJgyJJhUbhMo2Q1vEmUAkjQ5m9iZw2R+jrNB3g6NcH4 wzk2nUeCJVpX8AuqpK6h2VI5E64Hum2UNUZlAJNHv/xHDYMaeMW9rcKWjIBBEiJWYKzl 4HOEAQ3jD41lRcnVcdsOXAbeYydpqxQabktTDE/1Nms95BTuuFLGL7a2pHmZ9bZWkrbF 6R0Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:date:to:message-id:in-reply-to:from:cc :user-agent:references:subject:content-transfer-encoding :mime-version:dkim-signature; bh=ZLFhZYGAWQxoijbUQverY9nPQj8pPfraJAtyQg9ynUQ=; b=EjGQYqlBPUoCGw8XMQoWUoJWImKPVvyJd4Y48R7hkEonOPuNsCg+ew66IDC2NpGAHT F/ZtGkbvkQSncaffr7LI/qXHFwPuHJaKasu04ODcuiVHPLjIGbedVyMuM7NL61uNEtnt vQsdvw5AHQsw4bQZJKn3sjz5rADT6gQ2ChQyiEQCwmO6A3QILLyeD+u2KQGjzG3zoKVl Eb3Q5CIoSzd+dSNHLsdda7RzbfE6qAirp+YA2UfTBHTU5xBG+8RZ0n6zFINO6BJ4JRBr mDF34GnKMTt5EggM2SdDuPpQ1V/qELKlbRwv5D9lpzt0GPH77rmVd0fsc6m/MKpV2z62 ZFlQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=Vdenfzov; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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. [209.132.180.67]) by mx.google.com with ESMTP id 189si22072004pfd.142.2019.01.24.11.17.40; Thu, 24 Jan 2019 11:17:55 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=Vdenfzov; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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 S1729287AbfAXTRL (ORCPT + 99 others); Thu, 24 Jan 2019 14:17:11 -0500 Received: from mail.kernel.org ([198.145.29.99]:43360 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726049AbfAXTRL (ORCPT ); Thu, 24 Jan 2019 14:17:11 -0500 Received: from localhost (unknown [104.132.0.74]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 602A0218CD; Thu, 24 Jan 2019 19:17:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1548357430; bh=ZLFhZYGAWQxoijbUQverY9nPQj8pPfraJAtyQg9ynUQ=; h=Subject:References:Cc:From:In-Reply-To:To:Date:From; b=VdenfzovZ3Pi8+sDp8MxgZBhU0L+7icUmYilA0F3sKtdrGwK/dvrr9kjbFe93fjHz HJytTznee4ePPcYQUlUaJqGcpUBBLj0qukdY90KX/l2WU1D2wEPoKLe60QJyPRKZ5Z oDH9BB3pK5fhW2PLt3bzOJVcFHDfayQxDwrpd4bo= Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Subject: Re: [PATCH] clk: Remove global clk traversal on fetch parent index References: <20181221003100.157581-1-dbasehore@chromium.org> User-Agent: alot/0.8 Cc: linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org, Derek Basehore From: Stephen Boyd In-Reply-To: <20181221003100.157581-1-dbasehore@chromium.org> Message-ID: <154835742949.136743.9149540159914235850@swboyd.mtv.corp.google.com> To: Derek Basehore , mturquette@baylibre.com Date: Thu, 24 Jan 2019 11:17:09 -0800 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Quoting Derek Basehore (2018-12-20 16:31:00) > It's not required to traverse the entire clk tree when the parents > array contains a NULL value. You already have the parent clk_core > pointer, so you can just compare the parent->name and parent_names[i] > pointers. >=20 > In cases where clk names are never registered, this can be > a substantial power improvement since a mux having an unregistered > parent name will traverse the clk tree on every set_rate. This can > happen hundreds of times a second on CPU clks. >=20 > Change-Id: I85499d2e576249568ff508e424ca8d5009e6e2b1 > Signed-off-by: Derek Basehore > --- Applied to clk-fixes + some commit text and comment updates.