Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp360766imw; Tue, 12 Jul 2022 22:32:43 -0700 (PDT) X-Google-Smtp-Source: AGRyM1sZ3MgWtbtz+IONsdueMKLuuK0tN3T7Ey7niYy7qzDmZHSn4PD4ePdOJOUX500Nq5i1lFDa X-Received: by 2002:a05:6402:1e94:b0:43a:9e92:bf2 with SMTP id f20-20020a0564021e9400b0043a9e920bf2mr2451675edf.248.1657690363081; Tue, 12 Jul 2022 22:32:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1657690363; cv=none; d=google.com; s=arc-20160816; b=h7zk3ldfS219q70a82TchoG+AUratsncZwE6szn3QKnTJFk/7DCWM69rryO5dhB/uR Gp1hmxrXq88jOwwgp7FUXfO5+KLxia8NFq4FNeWkVybWZoXaoDOu+f7Bf43pVMiDWRE2 AnmKXRYKyYSfu7s56P5+uwLtmYvI/oj9E8I0XrnoImvnh2AmqwccgXECI0pygL1xNadA E9yPJMcf16XtRgpxxzuPc865QSavzLo+ZUfauWOfBHHuiw1awEDQHqEZCQIz653WlH1V 8oy2OEgU8Z8FACVKryPUlRjhbcavvSECjJ5HU+OJK5Nkh+5pcQZB6g9bI6t6pW0V9h9S ok0Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=mIKNUqGIZ9Qcs/aIEKfbb45zWwyQ7ymHQgJEzGuRfmY=; b=VVZ8yFveND6QYts0upmChijgwjJ7wg2GMpV2iV5XCEjgh+1RFDL824wEqrrrb8PIwh J5+MUEVpPC03MTAcb6x8yiKm7jwRK7EoWMJUjHXjrPzJ/2pHh4JqkxWdE00oeRQF6KgV 9mJAToJ3UN31VjL5xB+fmZo2vO6k+T55PRMiVAmEBoH6FaiRLuMvpKQpcYOFN00Z0sbF df0CYnhOsdT+c8Ie0Qjg8jidSZD2xEZFgmZfjjNFYgzQiu4vIsJ6ySvwcN5Ep0NWqE1H 6cUzwsrkxVQpgIrYMj/VI/rOk1eR3x1WME4sdFYz+D7qOSuQ0WGfyKc88BHXp/P1W5xO AZzA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Ny8rhS1W; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id sg20-20020a170907a41400b0072b58288194si10545522ejc.293.2022.07.12.22.32.17; Tue, 12 Jul 2022 22:32:43 -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=Ny8rhS1W; 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 S234308AbiGMFbI (ORCPT + 99 others); Wed, 13 Jul 2022 01:31:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43210 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234305AbiGMFaa (ORCPT ); Wed, 13 Jul 2022 01:30:30 -0400 Received: from mail-pg1-x52e.google.com (mail-pg1-x52e.google.com [IPv6:2607:f8b0:4864:20::52e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D82D053D2C for ; Tue, 12 Jul 2022 22:29:37 -0700 (PDT) Received: by mail-pg1-x52e.google.com with SMTP id g4so9541876pgc.1 for ; Tue, 12 Jul 2022 22:29:37 -0700 (PDT) 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; bh=mIKNUqGIZ9Qcs/aIEKfbb45zWwyQ7ymHQgJEzGuRfmY=; b=Ny8rhS1WZKQMuXVGjP+3D5R7oWYDMe916j3R1gOjKLQ0uNcPLnRsXXTJ8aJ6zhZFMs rDLokRXUEOIpoWENgB3XswNHOHfvZ5skLPosEfWp57e3Q8YP11IJDqp07+73sNtbwLn7 n6oaXuYJRmojFkeXUYCpZpJZBTUBjmigVSXHD8izxH1M+Vo2x98/MNSbpSQV4IBrR7E9 zNozXCMeMBmxuWeMrNYy6N7I062K5Y/qPoHuodNTT5d6CdrcGIi3BMihJrXpFCLxFR/E ROd0OsHcxjwqkHcyV8hnHYbYdUmcKVxwq5Fm6+VFDCHtWDhUCp7jNvcgfSXSQrrBCWpK cYaQ== 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; bh=mIKNUqGIZ9Qcs/aIEKfbb45zWwyQ7ymHQgJEzGuRfmY=; b=X8PLUt/yFHGUFt99VOpqhzMCKvUTPwHHoXAyRqiBiKY/0r4K/4JBmYGlRDyajpUCUP 2BTqaygw8Cvy9MZISSiDMYa5LaOwsMPCwNxzWvD5IsP8es2WA1KPtz1alRez7fE9hG02 etsNWncHFIBKlRNnEl8LhrbH5loHoBBd7Aj6xACu17baGlDKzfzmBDZxOMbjO4rEQq7G 2XD6Q8Bu0eGdWOb62ozJc03jxj5qDbQam7iEGbh6DEna+QpTe0NkL6ac+xPsFZa+PMN/ skBanNMt6F/ILt2wzOUa35Elsb3qVNy65qubo46tGYrTgt4tMKg8hwnp2Oxx+fGyLzrx cGPA== X-Gm-Message-State: AJIora9LzQ8L0n86O685BpTPF6Vpip5C+Je6RHjArFKLQ3ICJDxEClyF sjbMKQMzclD4lKstx6sSQfjdOcDb0ypjyw== X-Received: by 2002:a63:1c4c:0:b0:412:6eef:f91a with SMTP id c12-20020a631c4c000000b004126eeff91amr1520167pgm.361.1657690176550; Tue, 12 Jul 2022 22:29:36 -0700 (PDT) Received: from localhost ([122.171.18.80]) by smtp.gmail.com with ESMTPSA id p23-20020a170902a41700b0016a71196150sm7777872plq.135.2022.07.12.22.29.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 12 Jul 2022 22:29:35 -0700 (PDT) Date: Wed, 13 Jul 2022 10:59:31 +0530 From: Viresh Kumar To: Perry Yuan Cc: rafael.j.wysocki@intel.com, Ray.Huang@amd.com, Deepak.Sharma@amd.com, Mario.Limonciello@amd.com, Nathan.Fontenot@amd.com, Alexander.Deucher@amd.com, Jinzhou.Su@amd.com, Xinmei.Huang@amd.com, Xiaojian.Du@amd.com, Li.Meng@amd.com, linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org, Sudeep Holla , Greg Kroah-Hartman , "Rafael J. Wysocki" Subject: Re: [PATCH v3 12/13] arch_topology: remove the acpi_disabled check Message-ID: <20220713052931.hifhtonr7rkg3r2d@vireshk-i7> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: 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,T_SCC_BODY_TEXT_LINE 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 On 12-07-22, 11:43, Perry Yuan wrote: > "acpi_cpc_valid" function already includes the acpi_disabled check and we can > remove the duplicated check here > > Signed-off-by: Perry Yuan > --- > drivers/base/arch_topology.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/base/arch_topology.c b/drivers/base/arch_topology.c > index 579c851a2bd7..73a8cb31529d 100644 > --- a/drivers/base/arch_topology.c > +++ b/drivers/base/arch_topology.c > @@ -352,7 +352,7 @@ void topology_init_cpu_capacity_cppc(void) > struct cppc_perf_caps perf_caps; > int cpu; > > - if (likely(acpi_disabled || !acpi_cpc_valid())) > + if (likely(!acpi_cpc_valid())) > return; > > raw_capacity = kcalloc(num_possible_cpus(), sizeof(*raw_capacity), Acked-by: Viresh Kumar -- viresh