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 41012C25B06 for ; Sun, 14 Aug 2022 10:04:42 +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:MIME-Version:References:In-Reply-To: Message-ID:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=NdPDT6frAf8/Uir2YIQvy/GBmS8WuL0dDLq2i0bYePM=; b=sfLkO2FNL8Wmyz YVT8KnzlKMKU5DT1rJ3dkPKJ8eMlw/40NvSTZvwz8kDXv78QrGtwwOgEZNK/IRzuf9XhcKSRvEF14 JXa/Zks2MCiwYCscoifeFgfsYBqDgEfoX7r6WagEVhKjIRPq1BVmX3eiAANinL/lHwZzYYd2UmID7 2vKZAUj0LIOTGXsmUbb2icEx8fhsOXJdxUMjzLoFIquUVBEaP0JwGwPIcdMp+olrfJkFpD1sk2utJ iMtX744wMxpO2wMtAMBgFgJNqqv8bwNGWjTwLwE16jnezobqwpb/Jxu4JPBBxhj1MHvG8WwOCKthF wD54SHH5eRljtiBfnScw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1oNASY-005dsX-Nk; Sun, 14 Aug 2022 10:03:06 +0000 Received: from mail-ed1-x530.google.com ([2a00:1450:4864:20::530]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1oNASV-005dqE-Bk for linux-arm-kernel@lists.infradead.org; Sun, 14 Aug 2022 10:03:04 +0000 Received: by mail-ed1-x530.google.com with SMTP id e13so6308175edj.12 for ; 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=n8I0OzIzrFMT9pDVCJSYsiCJtefh2GonLdpPDL698HuO9lE/L04q7UY4A9EjU+hUhq EcH40BuIS9xSNXOOzW480wsT7Tv4CybEEWneV6rB6/A2kt8qJ4TZ0kf1bmsSRU8iUZM0 N9eaE7a3uRNGGfDrQa/lFPjZ12y2VkWoerdS+qfKSACLOCyO1ZQpdf5h3nWdz8o2lQ6R OIEgPXiDjI754RoScF/XKGEza38qlwmyntZWeq4JKat6Ni4UZ6vHAkvfTitYCKdmlPfd 5VHpCLbPKKHyHlqII+gmZKqddMX24+Gmx6aYy5C8M22UgZipEZEmb5y6aw3XExpecwPn FtbQ== X-Gm-Message-State: ACgBeo3+/BCPP+Me5eJQ45EagXxhglorwXwXjOLQa7dYoLOeOJJbgF33 UpqbQAgikP5IbTN/KBnwzyg= X-Google-Smtp-Source: AA6agR6pfODl4z8g5+0i3U/G2F8naB8pinZvLP9XUoURWyhHcN67EGwaG5aUxFgsihalBkIBjoqSCw== 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 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220814_030303_508374_00C1716B X-CRM114-Status: UNSURE ( 8.77 ) 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 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 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel