From patchwork Wed Oct 19 13:59:22 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Manivannan Sadhasivam X-Patchwork-Id: 5589 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:4ac7:0:0:0:0:0 with SMTP id y7csp354985wrs; Wed, 19 Oct 2022 07:21:42 -0700 (PDT) X-Google-Smtp-Source: AMsMyM71qsdQlTl/2shbKlREJFYkuvbAPEwo11JlvRBZwyNjxPn7UixawTM2ASuwA7mby0ZWVajN X-Received: by 2002:a17:903:451:b0:186:5643:42c4 with SMTP id iw17-20020a170903045100b00186564342c4mr3562275plb.101.1666189302290; Wed, 19 Oct 2022 07:21:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666189302; cv=none; d=google.com; s=arc-20160816; b=bXmSYyl2TQsTE8z7Cc3Qzoag9RhMfnG8Yx9qoxgcJJep8tCMaO41b1VTnLc6sAqID7 NzE6gtr+F9DBD9dpmHsLcide/RH7YcjXRk9wR2LzVzwW2BwJOOY4l5cs12Oi9zzJ6/cP 7PZSx1w8UhuTC/ePzmbp/P0838lea7Sg/yKCq4a/3tDsPJvp5SsJlIIxMtVn131alIyQ g479JvdgR5brmRQG2LdQZjGRqlNYZpJQ8wDsMp+XGDf+cT+qtPHGRhHIbyGWGAkPutTw ESUDY/7y4T1nWgREMizlz/9/1b6+7vanUIZOjFVIEtGHn5+mQaryKL5A/qZV31rTES3h 8bPA== 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=aVrBrXnls1UrG846B5dkI6ytfNdM4De2n0ZnQt2yutyUeU9Ha/CQnY1o2kkCnhA7Pb jOyyUqXJhtlgKQ7kjkdA+yB8dMuulm49M6EGViJ4D1rMdTk5BgV4yQh12jboknb9VCyu cIhnD+kBNjrimST4H3bkfpf75bcmRFK/jzrFwq0lSP0xzugh57WiCotaJBTASc3ArevH eCybNGLBNYJI+28acNorYEbGAN9ndES7/9gYuvO04mH3jLtJx9l2Dnt/OPTbFuuCc5B3 QHJv+p95mgjXfWOccxAgl7lFF7rUlxbLwcDJg8pjTTleelG8AUG9RZVpEqaR4y7EfYyK 3s6w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=YGAYOVv+; 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 nn10-20020a17090b38ca00b0020af213b0d9si133092pjb.13.2022.10.19.07.21.29; Wed, 19 Oct 2022 07:21:42 -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=YGAYOVv+; 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 S232651AbiJSOSz (ORCPT + 99 others); Wed, 19 Oct 2022 10:18:55 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47422 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230080AbiJSOSk (ORCPT ); Wed, 19 Oct 2022 10:18:40 -0400 Received: from mail-pj1-x1034.google.com (mail-pj1-x1034.google.com [IPv6:2607:f8b0:4864:20::1034]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 992081CCCC6 for ; Wed, 19 Oct 2022 07:01:41 -0700 (PDT) Received: by mail-pj1-x1034.google.com with SMTP id pb15so82410pjb.5 for ; Wed, 19 Oct 2022 07:01:41 -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=YGAYOVv+brUZd23y7jvKSb64Bb5umVyN2Q3QSeu1MMFEuhjPw2hd8U1Zx8Vsqj0Sd8 vzvgLc83OHECsisUyP9UWZgPnvUSOt/KGIz/h/D6SIS6z9DRQBv0qfRq6tKbYHCS/hYm AFf5CgV2T1wHNeCArE60X4fjJFf7WwCcYzDouX1lzJCEvjpGR4dRZpFM99Dru7lPpiix HyFttEscr3sUOB/T3vMUgzBxl0G/HmbkqvS/HbpeBBWNpSfAaM6lUEDtuLR6duB2dHrl Pj3wiwvBiI8v9iWj3kwfrkJ4Q0qgJhyMtUbrKBUxKPOlsKA9tVYEMKmVHRWTeJST54W1 b0/w== 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=ylcyDQ3Kms1vfKzYYAYPV5j2DYhgPkGoQpTOvY3+OrOBcOWIBzeuldNSJz271x1eWV tgEX2sV4PZeuLB16bW+egmVLcfhs9pVDjDWCruICBcZtnuqEvtexSrEenCz+m6HBVPYM AFofX3VC6sKZQePt97OZrUAs5W0Lj2p5T6iZDtOXVWdJtecjid1KK1rCN36zJvbFXTso ajsjPiV4QxseyASWX7tRnudm3JU/upztTBkxeYzHy+jbHiRugv+X/FJ52jMUfLIfGFxZ N81GsFZKZO1ar7ib6kPxvTzIPorLdPvwlWBaXgXUDdxY1VJ9T3Yt7mYCg5Y5JLqRMOZd yIqQ== X-Gm-Message-State: ACrzQf2b4q+YHMtCQrymMaHgZmhHSG4pcXqm+T/I5llRts1XEDx80U1s MXeso/IlRUuiLOmP7yOreAFs X-Received: by 2002:a17:90b:4a84:b0:20d:8953:5ab0 with SMTP id lp4-20020a17090b4a8400b0020d89535ab0mr44983588pjb.48.1666187982638; Wed, 19 Oct 2022 06:59:42 -0700 (PDT) Received: from localhost.localdomain ([117.193.210.93]) by smtp.gmail.com with ESMTPSA id 194-20020a6216cb000000b0053e199aa99bsm11240322pfw.220.2022.10.19.06.59.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 19 Oct 2022 06:59:41 -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 1/4] cpufreq: qcom-hw: Remove un-necessary cpumask_empty() check Date: Wed, 19 Oct 2022 19:29:22 +0530 Message-Id: <20221019135925.366162-2-manivannan.sadhasivam@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20221019135925.366162-1-manivannan.sadhasivam@linaro.org> References: <20221019135925.366162-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 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?1747126113580540777?= X-GMAIL-MSGID: =?utf-8?q?1747126113580540777?= 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;