From patchwork Tue Oct 25 07:32:50 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Manivannan Sadhasivam X-Patchwork-Id: 10559 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp861497wru; Tue, 25 Oct 2022 00:38:39 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5unfnb8lKoPAc9paKKGrFDE8xV9WYD8qesOG8+IaiZUG6dqDFA142pSDLzE0W0Mvv3CqGI X-Received: by 2002:a17:906:ef90:b0:7ab:1b2c:b654 with SMTP id ze16-20020a170906ef9000b007ab1b2cb654mr4057031ejb.627.1666683519757; Tue, 25 Oct 2022 00:38:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666683519; cv=none; d=google.com; s=arc-20160816; b=JGHkDP1TOmPWdFW23A8YvH4MXVk4Utq3r+YkAGn8wUvoQ0ymMf/A2ruE7MNXJ66vJg KRLExZlrKjqcYqcEeqr8CX0Cm3bRrSxTCi1yrxSF3EkVn1K+3lUgF+3Vdc+frWUmX1+8 PuuRm4Te3sa5JEHUyTQ/orGVEKudYz9v5Fg0tWjhZOG5SLSQ7hOQaHlvJFXGZ12eMNFu Maz98PwUXKU2PCpujLNligVIEcP2w3VpYAmm/IFpsnY5FXGiL1sNF3EW+pyt1g51nbc0 CFg4z+gOTBoB/xCw7HglJbLNR8rrsVxoVgUrroP36NyU9bLMbj1Ay3TlXqlNtKRoMglW 3yoA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=YBJNc8d1DN49dwvNIgcD6LtTNDN4+u1e0rvTArMbSRY=; b=Vs32rvmwmPlSHujZo6Gzslx5Hd+nc2Tg7Q2aUPL6dK6TbAW8yLQdBhzGJp8aoteM25 wYvOJP7Bxa5pBIZC9HuBEznPA4eTtJ5oMXn9hpMEZ6Ts/aKtLa4EcDL8SV+1ecgpBznM wgwRQbe4yQ+C0CU1AQ9RlXyaFek4rQbVFa4ZTk+octvBv8aldP7NR6HYOnpG9j7q9PpP awyffhjt2+Lw5l01h2hmPzFFbqlIINnll3stQ7yInB9VuM/0+4cN8ucZ++VQTOTOa0og SsGmkpB+rr+cSj1Z5wftlwrOT64/2i4lzLx7bqtoiC02YJCB8agd4COTCE1BPgJxRk16 8hwg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="NKtZ4/S+"; 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=linaro.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id x11-20020a1709064bcb00b0077eca9fa444si1693762ejv.187.2022.10.25.00.38.15; Tue, 25 Oct 2022 00:38:39 -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=@linaro.org header.s=google header.b="NKtZ4/S+"; 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=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231240AbiJYHd4 (ORCPT + 99 others); Tue, 25 Oct 2022 03:33:56 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60026 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231794AbiJYHdZ (ORCPT ); Tue, 25 Oct 2022 03:33:25 -0400 Received: from mail-pj1-x1033.google.com (mail-pj1-x1033.google.com [IPv6:2607:f8b0:4864:20::1033]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EED4915624A for ; Tue, 25 Oct 2022 00:33:24 -0700 (PDT) Received: by mail-pj1-x1033.google.com with SMTP id m2so6020257pjr.3 for ; Tue, 25 Oct 2022 00:33:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=YBJNc8d1DN49dwvNIgcD6LtTNDN4+u1e0rvTArMbSRY=; b=NKtZ4/S+UJJX5l07YfNyJffaTjRg3x5gdXQAfp1hQjYamonsDlnRlVScMQpKuxUuPD YH8HOm3NA3whEWOSPxoCMiSBZmcSzP47sA3dxaxRqwtt4iT2RrGst6q8oF8xpfMphvti L4xnbJ5fggOICM+WWyZsf9U01siCUPrcA/dFZdZM6yhRWIVH5kyzncKzkb31c5fyJMIJ FH8MZ8824mHcT6q3HhP8Cbz32wtXD8GgJxrXxf4Bu7yqwstSFxG/VT5TruN/RUa+lmhP 8eAMqK+9z7F5TAIrPlpMzAXglgn9aS5hIhTm/X1R8B5d1ihaxSRWSOLgR/jmf73BEAv5 syqQ== 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 :subject:date:message-id:reply-to; bh=YBJNc8d1DN49dwvNIgcD6LtTNDN4+u1e0rvTArMbSRY=; b=QHeXTVzkeWxSiyO0Fu5eSmUeM6vHsFzVAyoteLqbXOFk10wLwf1yAcrD50U4cKru9V LzHQpwIlqJF1ofsbzErROowrdnWsBetpxpAT7uMCjRotXeWiyGYYj5o/icP/eMrRuaTe 1B02X0hGd7cpgp/sauTfC3mAiwA657phbUpalSfUqfrHyTQDVObZW6MrMBfPANvHur/y hFt5YKxp6/PElbQboAAorQU/HHBwE/ahZG+Y2h9iMGPm/YAFXJjAmJjedjxOwUQQBrAO jGMKsrCRqSrYveg7viMIUTUyg2qgLBMuuTjkYGsUqeZcpvSHZ4mVbtMRq4OMMduhpfbH jQwQ== X-Gm-Message-State: ACrzQf1A6WU1sd6lXwzYvjNhMrgC3jIpI+U9W0DoR7oP6cjiYGT5xAvE +XTypCPwq984mcuf8PzsBIew X-Received: by 2002:a17:902:a606:b0:178:57e4:a0c1 with SMTP id u6-20020a170902a60600b0017857e4a0c1mr36885582plq.83.1666683204458; Tue, 25 Oct 2022 00:33:24 -0700 (PDT) Received: from localhost.localdomain ([117.193.211.146]) by smtp.gmail.com with ESMTPSA id c1-20020a17090a4d0100b0020dda7efe61sm5048369pjg.5.2022.10.25.00.33.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 25 Oct 2022 00:33:22 -0700 (PDT) From: Manivannan Sadhasivam To: andersson@kernel.org, viresh.kumar@linaro.org, krzysztof.kozlowski+dt@linaro.org, rafael@kernel.org, robh+dt@kernel.org Cc: johan@kernel.org, devicetree@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org, Manivannan Sadhasivam Subject: [PATCH v2 3/7] cpufreq: qcom-hw: Remove un-necessary cpumask_empty() check Date: Tue, 25 Oct 2022 13:02:50 +0530 Message-Id: <20221025073254.1564622-4-manivannan.sadhasivam@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20221025073254.1564622-1-manivannan.sadhasivam@linaro.org> References: <20221025073254.1564622-1-manivannan.sadhasivam@linaro.org> MIME-Version: 1.0 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=unavailable 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1747644338577607895?= X-GMAIL-MSGID: =?utf-8?q?1747644338577607895?= CPUFreq core will always set the "policy->cpus" bitmask with the bitfield of the CPU that goes first per domain/policy. So there is no way the "policy->cpus" bitmask will be empty during qcom_cpufreq_hw_cpu_init(). Signed-off-by: Manivannan Sadhasivam --- drivers/cpufreq/qcom-cpufreq-hw.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/drivers/cpufreq/qcom-cpufreq-hw.c b/drivers/cpufreq/qcom-cpufreq-hw.c index d5ef3c66c762..a5b3b8d0e164 100644 --- a/drivers/cpufreq/qcom-cpufreq-hw.c +++ b/drivers/cpufreq/qcom-cpufreq-hw.c @@ -552,11 +552,6 @@ static int qcom_cpufreq_hw_cpu_init(struct cpufreq_policy *policy) data->per_core_dcvs = true; qcom_get_related_cpus(index, policy->cpus); - if (cpumask_empty(policy->cpus)) { - dev_err(dev, "Domain-%d failed to get related CPUs\n", index); - ret = -ENOENT; - goto error; - } policy->driver_data = data; policy->dvfs_possible_from_any_cpu = true;