Received: by 2002:a05:6358:16cc:b0:ea:6187:17c9 with SMTP id r12csp8666091rwl; Sat, 31 Dec 2022 09:33:22 -0800 (PST) X-Google-Smtp-Source: AMrXdXv00fR8OQazUOcIlGU3jsS+AOGntRMom9Qq9/2fOcU0VRQLTcCmTKVzV7bsem2nn7zpowtd X-Received: by 2002:a17:906:8601:b0:7b2:91e8:1553 with SMTP id o1-20020a170906860100b007b291e81553mr30975948ejx.20.1672508002605; Sat, 31 Dec 2022 09:33:22 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1672508002; cv=none; d=google.com; s=arc-20160816; b=JTrFwJSHrSiqFZoMQ8R+2uClAUMgYEkfmWOtI2tKQNyo6+6FQcaaJH1PSWGB5Mpvgf pR16N/eAgGeDIv/tmQgkbUdroDfhyuUQMIXfGsxxCW2tbY1nheEz44CvDd5csdc2HT5F 3BeIEmnLWcOx0sTZfPzvfObJUFW+XMHAgf3M7l7FjZj6rLlKt7yjd7J8RQSGZfsj+Tpp LVuDgxd8YcIiwjxF+kjXxRugFRzxq+bqTkCLg8Txt5fNPG2E0k5fzo7VS4N0gvhEQKi7 Ni1/XHgj9dI8+rQ9LoXuYmtI1fEXB8GrmDnaZhvmhyexthMS7NX+R3ovLsULgpBJGqM9 /jPg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:subject :from:references:cc:to:content-language:user-agent:mime-version:date :message-id:feedback-id:dkim-signature:dkim-signature; bh=MwNzCwU4y8oThA8LV/hj9QJkdII91FpQFynEsjgAkEs=; b=g8/tjXdZswmavQPV7M4wpFqtFcKLjoSdWY7zziP8KPdQ4akRefVXIrVosjh7zYCT4L 8CM79pgZzE90mRse/1ceJUpLGyXZAgUzOmsA5m/VOsbmWsCsrYZrj/Vj2XFSb1wyasW5 uMuMbBpQmDYZmPDr8D8wC9CSbacVU1+PLF35iRD/nduxg27CTgfF+Ug+rjNEaZkfa5NH Vxqn162mHINrs4fkvl+5NAebUpGjEuVeGTi7d2wms/ALx4QpIFB1qQ9c7K53jLyzjlSJ CH3MHT7q237bl03yPTyBx+D9yfvenRY78AITe9nrbxvQAY7xjAW7njluS1JzXdCCbeyE H9iA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@sholland.org header.s=fm3 header.b="uwd8/4TH"; dkim=pass header.i=@messagingengine.com header.s=fm2 header.b=BgE5QA+b; 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=sholland.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id cr20-20020a170906d55400b007bbf9652314si22198796ejc.435.2022.12.31.09.33.05; Sat, 31 Dec 2022 09:33:22 -0800 (PST) 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=@sholland.org header.s=fm3 header.b="uwd8/4TH"; dkim=pass header.i=@messagingengine.com header.s=fm2 header.b=BgE5QA+b; 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=sholland.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232127AbiLaRVt (ORCPT + 62 others); Sat, 31 Dec 2022 12:21:49 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37188 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230053AbiLaRVr (ORCPT ); Sat, 31 Dec 2022 12:21:47 -0500 Received: from out2-smtp.messagingengine.com (out2-smtp.messagingengine.com [66.111.4.26]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AA51360D3; Sat, 31 Dec 2022 09:21:46 -0800 (PST) Received: from compute6.internal (compute6.nyi.internal [10.202.2.47]) by mailout.nyi.internal (Postfix) with ESMTP id 506DA5C008F; Sat, 31 Dec 2022 12:21:44 -0500 (EST) Received: from mailfrontend1 ([10.202.2.162]) by compute6.internal (MEProxy); Sat, 31 Dec 2022 12:21:44 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sholland.org; h= cc:cc:content-transfer-encoding:content-type:date:date:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:sender:subject:subject:to:to; s=fm3; t=1672507304; x= 1672593704; bh=MwNzCwU4y8oThA8LV/hj9QJkdII91FpQFynEsjgAkEs=; b=u wd8/4THVCiCZ6yOyZOn3iXMMSxbkDpU9Wp7C2rtX3lqNkbWiBmU65vxHibpimtqB FDIGsvSPXwv9KADS4yI/eDIDD86qI6xUOOAMb0L8FaAUcZ4quFIXVHergOPZtKMJ kWawKPRGGdwDob4TCmYe7lKGKaxLbNwT+qJTuqRzqyL6N3sQCRn+xBgmSX5+oLX8 s/nK3Yr6qF3/R8U102D61tMXDRWwwvElUeePjCCBVuUqxS0yLhohEb+1iTsY1apV EApGYAWweeOfGOFHr3oFf2VgHBtsdb57nhe7HZI4t/OSezyici3xKyc4NfwsW4mv jhidEBGvIrz+WbnDURkwg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:date:date:feedback-id:feedback-id:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:sender:subject:subject:to:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm2; t=1672507304; x= 1672593704; bh=MwNzCwU4y8oThA8LV/hj9QJkdII91FpQFynEsjgAkEs=; b=B gE5QA+b/pAmKjQguidTWRC9uBV1l4TMzpXmujhet+PWepsARa7E6ruY2DMuXslBF 3pmBD36JHLIVLJws70LfVYM6CHAk+GdfaWJVF9+b1CVKBLZIpFHw5Q1lDNx/JLVF lwLeOPsDPTdI0UpB4YO29sV0tVoxZCj1Nizot8DT2rkB4tuwFgwijI3DUV6gGA4J Z4F1uACXhKEalZJcLybrbt+07awvDb/irYwAWcXS4yG8z0vogrOLq2LNjLqtNsHk W6YsB4eC3bz6qHkeNDyq1q0ihrHSIzHbtuT16WTu2NdCHugjhdHbvraeSLI7SiKV h8Qh/tExDj8XH++gdyDSA== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvhedrieekgddutddtucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepkfffgggfvfevfhfhufgjtgfgsehtjeertddtfeejnecuhfhrohhmpefurghm uhgvlhcujfholhhlrghnugcuoehsrghmuhgvlhesshhhohhllhgrnhgurdhorhhgqeenuc ggtffrrghtthgvrhhnpeejgfffhfdujeeftdeuudeguedttefgieetffffheejuefguedv heejteeftdfftdenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfh hrohhmpehsrghmuhgvlhesshhhohhllhgrnhgurdhorhhg X-ME-Proxy: Feedback-ID: i0ad843c9:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Sat, 31 Dec 2022 12:21:43 -0500 (EST) Message-ID: Date: Sat, 31 Dec 2022 11:21:43 -0600 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux ppc64le; rv:102.0) Gecko/20100101 Thunderbird/102.3.3 Content-Language: en-US To: Stephen Boyd , Chen-Yu Tsai , Jernej Skrabec Cc: Michael Turquette , linux-arm-kernel@lists.infradead.org, linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org, linux-sunxi@lists.linux.dev References: <20220810014024.27568-1-samuel@sholland.org> <20220815172653.51C41C433D7@smtp.kernel.org> From: Samuel Holland Subject: Re: [PATCH] clk: sunxi-ng: mp: Avoid computing the rate twice In-Reply-To: <20220815172653.51C41C433D7@smtp.kernel.org> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-4.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_PASS,SPF_PASS 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 Hi Stephen, On 8/15/22 12:26, Stephen Boyd wrote: > 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? It makes a difference at least on my gcc version 11.1.0. Before: text data bss dec hex filename 18257 12 0 18269 475d drivers/clk/sunxi-ng/sunxi-ccu.o After: text data bss dec hex filename 18083 12 0 18095 46af drivers/clk/sunxi-ng/sunxi-ccu.o I will send a v2 covering all of the CCU clock types. Regards, Samuel