From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 7FF01C25B08 for ; Mon, 15 Aug 2022 18:07:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:Message-Id:Date:To:Cc:From:Subject: References:In-Reply-To:MIME-Version:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=OWb3lQ4fxdMpn6/56o7h+i4GrDx4XSQxiV2lpFW0U4I=; b=eK27LeElBRWK3T GVFRbUDvxF7UHZz8SM3TtV3XoJaBVme2WOugmt0PKvNPkQ/uIFz+2UX1Sr24cTb/Wt3H+Cka2Yu88 ztc4g4iZNqvjHCuYg/3Mcc+6J6/hu71C7S1dnZ3fnm7RG0XgBr/9SxlcehVC+jzEH+j6pFZeW/BFk rhg3htMr4qSvbkdrfjNZDmgZP8pecNMh8lLOxZcGdaY4STO6J7s2p/IgnfTFQC5ZomhJ4E72dQElT oF0L54aHfgZPtz8e87t30KfBlYCjfMpdqN+1U+sytUhB9tUK3QwmlNZixNXs+Gff3oLcsRdy8aUn3 l82hZlwREAMYKHq3sAfw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1oNeTI-002pem-D0; Mon, 15 Aug 2022 18:05:52 +0000 Received: from dfw.source.kernel.org ([139.178.84.217]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1oNdrd-002FfA-PG for linux-arm-kernel@lists.infradead.org; Mon, 15 Aug 2022 17:26:59 +0000 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 03A7E61224; 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== MIME-Version: 1.0 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-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220815_102657_962979_9A5F255A X-CRM114-Status: UNSURE ( 9.45 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.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? _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel