Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp1406811rwb; Sun, 14 Aug 2022 03:10:00 -0700 (PDT) X-Google-Smtp-Source: AA6agR5CPsBuVj1hp9Ldv76oQnVg0vPC+zX2J0ksuGiGb7rnY9A2Aq9LN3iS6n8QGkDl/9vcksHB X-Received: by 2002:a17:907:6d23:b0:731:147f:9e32 with SMTP id sa35-20020a1709076d2300b00731147f9e32mr7279129ejc.280.1660471800244; Sun, 14 Aug 2022 03:10:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660471800; cv=none; d=google.com; s=arc-20160816; b=cOWgjpCOrlTWj+pWrybsGF2sxth08P0ce9rZbrfo8mFTBy28khsiuJ+Nm8OEI04/cV hSgg2QEpDtlHZBzwYUUS0Du7bGiqsAPHMl05hw1U1BdS/0fNqNovskERLnDTdt6FKCit Kh1Fcz39d9Jf1+GvGOTEW56OPSMA0Oh2bekiVvWlWReaHby0D2dDnPpytHu51F1ViGQn h/VI7iP2NfO8AhU97jA3n7dJshVKPl28qAVfdyrdbByU34XGsBVu2MLLAgP1hvq4fNDa 5EoAPDRId2lWP4mMvLzBIqVuMpOg8xGoEQXQ+EE9u27+3qzzn19FM0+L/SoNI0a6kp6c snwA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=WHxiaSb1rJIu9R+4l2gEHdhyltoYWvxM1ZRzquRwQl0=; b=g9GAS68gvrt+Kdvsg15R8dQAC41AImANO2B2zaJSYzA7nve5ZltXr/Ll6xJf8aswyR 9Z0LmIRqLhv+WbEmJ2VHR6eJaNj+W4VqKmodYAA2wRThC1CSk7Ek5TzOAKr6vGUT8et+ vNCOM7wSrgPsT8q2WKLSKPOybhav39ASon/otri2DI8mc0b88GT+lu6iL8WssMnhx0Sr XxmJTrRgMKAo/jusYD3bfpR50eE6nGyPWdZVoryqoefg5rjYV/xWSQbhBTM24nenNpSK 8yr5Qto4dbukUp2gdIIDE82oNH115d9fCqOSPmZRn9kBCFkusqRYLAXQt3gATuwwhtkN 7JFg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=X+wo0w8M; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id a26-20020a170906245a00b0072f22d91836si4495789ejb.541.2022.08.14.03.09.34; Sun, 14 Aug 2022 03:10:00 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=X+wo0w8M; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231698AbiHNKDF (ORCPT + 99 others); Sun, 14 Aug 2022 06:03:05 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33920 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229484AbiHNKDD (ORCPT ); Sun, 14 Aug 2022 06:03:03 -0400 Received: from mail-ed1-x52b.google.com (mail-ed1-x52b.google.com [IPv6:2a00:1450:4864:20::52b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D2D081D317; Sun, 14 Aug 2022 03:03:02 -0700 (PDT) Received: by mail-ed1-x52b.google.com with SMTP id o22so6310471edc.10; Sun, 14 Aug 2022 03:03:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc; bh=WHxiaSb1rJIu9R+4l2gEHdhyltoYWvxM1ZRzquRwQl0=; b=X+wo0w8MzLU4kGs4TRnTw5kEzw9LrwS55YxQc7qJBNKDvaE2yU6WqBS1aBImY6GmmS OXvGAU+iNQ2Rcl0gLG2gvtAiG+ea+no9zXcHIK5Iu34j5bhdo3dnTJqBsK1Cpm3ZkloI 3hj7bYmF+2gTBYwmPzRzqS6vthsZ2U8ibVD1j59cS36s/tYtobth7b2TWjeVcE2Tp34R fvCAWIGkFSGNk2mF0uJ9qL5/Od6EvxtzGR4wLaqjsl5X84t0MNZ/Mw2RVWQJnScNCE2V uYCjvdxPAHXvR8KL00yj3o15N38ReHuYU5B6hPZEjbefoow6vvw1PWqagUF5nFbKcrV6 huxw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc; bh=WHxiaSb1rJIu9R+4l2gEHdhyltoYWvxM1ZRzquRwQl0=; b=uPJX63+rM+lDWt8NFjADbuh97ZwRhsVZZqz+68s+Mtx8oJb/TA007IorHD5lWngUBB J7wSmzl+mbncjL2h61orFZ63k2PtyFLXL/OgT6xT8RTPFWqArqa/wwvFO+RMyAGaHgja 7zFfxumTOPQF0ocF06N/mi5I0iUmoR9BbKA396yek0F6rnsyFtrPoorBdKEqrMX6bwWi tiQO9OAQBuER5hR1WMyKkC0lKya0/Ee9ASZj6v1oDhi2pYfvmtoN0hg31b9H/vUg+vQY kmuqals5Hua7cSmyuwBrhj3d1SwHmgK+2Uhh8FJBCchGyATXwRwQeZmG4UiDb7Zg9IBy iGHQ== X-Gm-Message-State: ACgBeo2V5fXIyTexqt50AVaYSOSuehCRVkSW6c1N8Tr//AfJmX7tMEah TmGdqIei/9Ou2Dbis8mMwWE= X-Received: by 2002:a05:6402:2549:b0:440:5af7:f117 with SMTP id l9-20020a056402254900b004405af7f117mr10576010edb.259.1660471381510; Sun, 14 Aug 2022 03:03:01 -0700 (PDT) Received: from jernej-laptop.localnet (89-212-118-115.static.t-2.net. [89.212.118.115]) by smtp.gmail.com with ESMTPSA id n9-20020a05640206c900b0043cc7a3ff7fsm4450601edy.33.2022.08.14.03.03.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 14 Aug 2022 03:03:01 -0700 (PDT) From: Jernej =?utf-8?B?xaBrcmFiZWM=?= To: Chen-Yu Tsai , Samuel Holland Cc: Samuel Holland , Michael Turquette , Stephen Boyd , linux-arm-kernel@lists.infradead.org, linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org, linux-sunxi@lists.linux.dev Subject: Re: [PATCH] clk: sunxi-ng: mp: Avoid computing the rate twice Date: Sun, 14 Aug 2022 12:02:59 +0200 Message-ID: <3682564.kQq0lBPeGt@jernej-laptop> In-Reply-To: <20220810014024.27568-1-samuel@sholland.org> References: <20220810014024.27568-1-samuel@sholland.org> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Dne sreda, 10. avgust 2022 ob 03:40:24 CEST je Samuel Holland napisal(a): > ccu_mp_find_best() already computes a best_rate at the same time as the > best m and p factors. Return it so the caller does not need to duplicate > the division. > > Signed-off-by: Samuel Holland Reviewed-by: Jernej Skrabec Other ccu_*_find_best() functions would also benefit with similar change. Best regards, Jernej