Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp2738360rwb; Mon, 15 Aug 2022 10:29:48 -0700 (PDT) X-Google-Smtp-Source: AA6agR4NZf5xzLNOr/BWC6AxE0o8tgfEkyPbDYv/sxVxDZyM6neqaVrQsYsgViJ4ziHM5nEvTbqz X-Received: by 2002:a65:68c7:0:b0:41c:cf0a:5008 with SMTP id k7-20020a6568c7000000b0041ccf0a5008mr14323377pgt.443.1660584587808; Mon, 15 Aug 2022 10:29:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660584587; cv=none; d=google.com; s=arc-20160816; b=qa1aQib9GuBi3qgqN5gImaNONpTLX7fQZs03qD5DqPwNtekeRdVN+cKI9U6cAG6fxL kT2E9gmH5/S0ds91KbG5XIo8dKB77NG85KURzo1njMLRhdeq0Zt7F+wvil2XRClRe2oC qNTpdoVHmnb0fzOCAiFrgOBiwSvv8eZbUeCcdUO3aSREvj0avDgrVT2B4kVetyrgW0wq VxAT3o4dmTBrJCjTQ+VE1Ijo705dZzjateUz7vH0CN8HDZFR+TLWbaTuWSXXX9HuqNPG RQAoUavMcSdVNudVPPkQYYjnuVsf0wrk0ihUlQz6i6qNzylHwnQkovZv7rkH4wJxOran PL8Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:user-agent:date:to:cc:from:subject :references:in-reply-to:content-transfer-encoding:mime-version :dkim-signature; bh=gfrn3wi3lFlHb1DMO/mTQsg4NzAyb0o0/UVlWIOz7MA=; b=ClWNHvjfpcYcnMAH8roSgKsx0BDziYqGvZSJwbIsgyH82oIF3MWL6DynNMieqotfAh fUhk+ZG7qHJCrIJsv1G3rVHs3EGjtsLVeL9qWhYe0bWBfCixwBe0ifB1qQ20hW5iUEch 802sLoT/l9k3MXsi1/bVXm0+xA3cBRghGl3d0t39PIYBn9oUEkC8j4gAz5jKl5bemDSc elle3iZJb8/s/XToCAHqbXJxtgvaVA5LNYdm1iVPpD6UgjqIGW4wDFjYquR00dYLhciU 3Zw6Ful4+JTt7zrs7m61ujtuKh6VmBQFRy4riYAwFLaNKrgkHTm6iIZVejMf8NhYTbgy xcqg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=ZAOTYbOZ; 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=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id r23-20020a63fc57000000b0040cc39c0357si10485645pgk.125.2022.08.15.10.29.35; Mon, 15 Aug 2022 10:29:47 -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=@kernel.org header.s=k20201202 header.b=ZAOTYbOZ; 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=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233161AbiHOR1f (ORCPT + 99 others); Mon, 15 Aug 2022 13:27:35 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44588 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233088AbiHOR1N (ORCPT ); Mon, 15 Aug 2022 13:27:13 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C06F327FEF; Mon, 15 Aug 2022 10:26:54 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 063F761229; Mon, 15 Aug 2022 17:26:54 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 51C41C433D7; Mon, 15 Aug 2022 17:26:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1660584413; bh=gfrn3wi3lFlHb1DMO/mTQsg4NzAyb0o0/UVlWIOz7MA=; h=In-Reply-To:References:Subject:From:Cc:To:Date:From; b=ZAOTYbOZGP6hcCeGKRAn1Z3DXn8ojOCipv6CPTgverYtBWoJGH+QpFWjV+pzGcRVM cgxjAeuHwTEXydOulDfNDCBUb9COW8hRN97s1SqcKsA6WyK3ZnOXnOh28hZ2TW7fp/ 7GyamXOA4hvZB6hmDxuSM6BwVkBThqXWPaO7dnUZM8O2TMSGfSwr7YgaWj6QwIpRnd VWhQ1OQtonKYXLx9ChnMwn2PiUeIANAK4RPPezezGfftPT3mgpbAxt7zehwOANvpa0 Do0HWzA6P2bZQH5cWfVkwUOXBxXQwtFIPFwDCoSGDc5WrEp65ousCby8cJRq37sjoc /F9V1khJkN+yw== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable In-Reply-To: <20220810014024.27568-1-samuel@sholland.org> References: <20220810014024.27568-1-samuel@sholland.org> Subject: Re: [PATCH] clk: sunxi-ng: mp: Avoid computing the rate twice From: Stephen Boyd Cc: Samuel Holland , Michael Turquette , linux-arm-kernel@lists.infradead.org, linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org, linux-sunxi@lists.linux.dev To: Chen-Yu Tsai , Jernej Skrabec , Samuel Holland Date: Mon, 15 Aug 2022 10:26:51 -0700 User-Agent: alot/0.10 Message-Id: <20220815172653.51C41C433D7@smtp.kernel.org> X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, 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 Quoting Samuel Holland (2022-08-09 18:40:24) > 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. Did the compiler figure this out and thus this patch makes no difference to the final object code?