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 mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 94B37C433F5 for ; Wed, 17 Nov 2021 07:24:19 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 734EB63215 for ; Wed, 17 Nov 2021 07:24:19 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232982AbhKQH1P (ORCPT ); Wed, 17 Nov 2021 02:27:15 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43998 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232831AbhKQH1G (ORCPT ); Wed, 17 Nov 2021 02:27:06 -0500 Received: from mail-pl1-x630.google.com (mail-pl1-x630.google.com [IPv6:2607:f8b0:4864:20::630]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EBD81C061570 for ; Tue, 16 Nov 2021 23:24:08 -0800 (PST) Received: by mail-pl1-x630.google.com with SMTP id m24so1350465pls.10 for ; Tue, 16 Nov 2021 23:24:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=kji+SUoneEhDpvHW6mGuFpq4rQ8F1rfzbU8c63R1UU4=; b=fzMiVi/GNYynU/MBd7H+eL91mogPSBPffkoMBm+U76lHfMjnvkn8SjAunSOiW+HvQ6 knYQkQVFVXs5jLX3h9rkiSpB90rehqMUjpggSN/8oOlvJogd/KFrSvExH4hZ0Gllmzih Pl6YaoJh9exMYNHviALVwKTk6VHsW49ea7Ci3gmwAuEm1Ppv8ahwYcThFCIOxXVI7YHM xYB1um6fYsbWdOE/k3T1o+gMxx/+8gaDSGy/uPta+2eGOQWSjVxHCtrFleGfI4IsH3/h gvB4ureSX2G/SViPiL+B5P+tOIYLZ18bMZhv4LO22OGQww5S+LVwfRIkmsa7hbvzNlF0 Z9OA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=kji+SUoneEhDpvHW6mGuFpq4rQ8F1rfzbU8c63R1UU4=; b=fhyHor6pRlAIPshjlX1f4aIMX/LAeiDXVuRi9kEZynvXE2i1Zidl1FxKL0nCwJYuVA a8HVHai5Np4V6H7D947BDw9Ia64J5yWg08GhDWGzL4chbtuW9jegb53KjBQ2P5ZxoENr YtrgP76KYasbu66sFHlSHITJFRek0HZxa8O3fD1Qbg+rRmFnXmvtPiHYu9vRRQVohKMy aNTyfeDiRErXjMvwfCPfaWtAgLeKBDEmwp504XrSILo+N18F6ZXIW/Lumigy8P35oGlN DA1jd64/39/274t0WCE1ktqwuEs68SbXwYyCOkLv4+2vjH57jyaear+y/sRqw3mrk7uj qcNw== X-Gm-Message-State: AOAM530DMVVIXdR6RQvlaspH1VQ45fHkxA8c7jiqiqVD0/nzLaWYA1Im j49ODUWGsRxlGSWyIgEWUNZUPw== X-Google-Smtp-Source: ABdhPJydpmGz72MxmCjoi6KzlOeAtz2KJzNgrhdhdAk7RLpBL3S4vMRwMhLcw17gnChIA2zHhp/Elw== X-Received: by 2002:a17:902:780f:b0:13a:3919:e365 with SMTP id p15-20020a170902780f00b0013a3919e365mr53356829pll.63.1637133848491; Tue, 16 Nov 2021 23:24:08 -0800 (PST) Received: from localhost ([122.181.57.99]) by smtp.gmail.com with ESMTPSA id q11sm22237671pfk.192.2021.11.16.23.24.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 16 Nov 2021 23:24:07 -0800 (PST) Date: Wed, 17 Nov 2021 12:54:05 +0530 From: Viresh Kumar To: Thara Gopinath Cc: Steev Klimaszewski , rafael@kernel.org, bjorn.andersson@linaro.org, linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org Subject: Re: [PATCH] cpufreq: freq_table: Initialize cpuinfo.max_freq to correct max frequency. Message-ID: <20211117072405.yqrn23ria4snrjda@vireshk-i7> References: <20211115195011.52999-1-thara.gopinath@linaro.org> <5ae2c644-4743-c62c-b17c-96945a0e6a01@kali.org> <20211116035935.wmazontuznhys6qu@vireshk-i7> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: NeoMutt/20180716-391-311a52 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 16-11-21, 10:27, Thara Gopinath wrote: > policy->max is unconditionally set to max_freq in the line before "if > (policy->cpuinfo.max_freq < max_freq)". So the current code is not correct then :) -- viresh