Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp3963347imw; Mon, 18 Jul 2022 18:33:00 -0700 (PDT) X-Google-Smtp-Source: AGRyM1u/+dtijohlxi5koAKnAv56yAqb9ffhHmpIWAZBWzZRdQysbDdqIKKGwtM8fg7m7cTw1d1c X-Received: by 2002:a17:907:97c7:b0:72f:575:723d with SMTP id js7-20020a17090797c700b0072f0575723dmr15762732ejc.499.1658194380780; Mon, 18 Jul 2022 18:33:00 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1658194380; cv=pass; d=google.com; s=arc-20160816; b=jjRnhT8lgushGmNdUHl2hltFECjgeYqU2lhEzlRPqY4iHldjQLI00vPa9/7eMMCOr8 Q2kf2+fkkv+F/y5A1S9lQgLLjy4WRtyMlCtpGFCPeEDNPGoqfPXHwiXw9Nw47uv8zZLc 7a0J1JidFfWTX1gBPRR/8ZPbN4dFC+VcnxXd35Zlpvfl3cWZKFI4Ciag/aU+Twj/omH2 IuSuNxWTxDkQ2fvEe0LvAO/VjBrQu3LwgE1e928lLSkADQg9FJ2thLyJi2LMPjdi6Ov5 rvodeDHGVHCPuB8WYG7KPqsulRhQQV0oc+HL+glfbgJ4+8216meGOwiL7e+jsO2Di31s hZVA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:in-reply-to:content-disposition :references:message-id:subject:cc:to:from:date:dkim-signature; bh=mhCRgaBSCgretwY5zy3wseRZpaiwHGF1ZHdbZV3c57A=; b=p8rqfLjk50M4d9GRrRqukapbWKxIKLFCWAxEhZsfYSyZHOWFppJVVrbxDZPEPl5OiF ti7FHHVaoTcR7FeD5QM3bjjBk3RguSobT98bWRSn/soslstksujzXf+ZvRuFIsmR7+Ye 3Sz+dT/061kOlVMyVkcrdw7JhG/UHQTp/Jmmf5CYb/mqRTNRmEdipfgnWNnf+OWYOs31 OkAJx8yj/N8hUHcxY6p+mfSxEJ5Y0M8u0k9PnoL6Zl9BeWJvKlu/Lth97nG9ZrMHaU4/ tDIV+f07HaEFg3g22jwZcn6T7EpJICjN/dm/qCiXfqCZBy5tmIiqlmx1Ua0D+cB8O1/X YiMg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amd.com header.s=selector1 header.b="cZp/qkei"; arc=pass (i=1 spf=pass spfdomain=amd.com dkim=pass dkdomain=amd.com dmarc=pass fromdomain=amd.com); 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amd.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id a16-20020a50ff10000000b0042dd658ab17si15730249edu.231.2022.07.18.18.32.35; Mon, 18 Jul 2022 18:33:00 -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=@amd.com header.s=selector1 header.b="cZp/qkei"; arc=pass (i=1 spf=pass spfdomain=amd.com dkim=pass dkdomain=amd.com dmarc=pass fromdomain=amd.com); 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amd.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236470AbiGSBIV (ORCPT + 99 others); Mon, 18 Jul 2022 21:08:21 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56720 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233670AbiGSBIU (ORCPT ); Mon, 18 Jul 2022 21:08:20 -0400 Received: from NAM10-MW2-obe.outbound.protection.outlook.com (mail-mw2nam10on2055.outbound.protection.outlook.com [40.107.94.55]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F13C09D; Mon, 18 Jul 2022 18:08:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=ZgG+nOr+q3pYg/Zu4fb4hdtlCPm128mzXPRxbivTCBauyPALheegQkmXbmwF64IiWSe6U2dTtCobs9h9yRQsNHcDo8TiT82K2lLwZ94rHvXEhA6jclrqT2ZJpxEqh7o/wvmQe6hoWoMxUwxXMSpda6vYo2yYUihKSJYeFwMehLe0WXDintPpBU3zwdDqsbJ7yH/fKP8R+WX+73jqanYoiBpb8SWZLbOFCM4ivulkdKnSA+aZrLiZvJwZVhecqVDkIfj1xiVCVC33SCVRT/KbJCn+TaYdB32Ejw4dVd5+9e3E0tIYSHxwSW9o95fNIih9exgrOXHxp17/uOf40LMKKw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=mhCRgaBSCgretwY5zy3wseRZpaiwHGF1ZHdbZV3c57A=; b=SHcBbga/8yjbp7PGGZzmUZqp6icD4DO8VItZ+BIsuxFmZdEbMry0W7GrDRP69D8b2/FtOV9ZnnXcL2nEEK6qTL5LZ4Lyh4MXTq0+CAf6Axdc2xtr4jxjV5J0hDx9Oag0omoLmtYMMrzd3eJl3ounBROrCk/XNKAe83+13RGX1OEEa3fJZkX57ttf5HnT6CHgprbBm+RvmsCZ4m4dK6cxxQ7U8jucr/LCAsb3riUuPDZrh+UiwFgNwB+iEi7kHrw+xLqgu2Mt8OHiLbTFwmc+F3l/NBhnNgoWTa8aj5zbGCIr5+j2cTurLzuSJlrkzeaNHz8VN6pq5mGLOWDdh0Ziaw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=amd.com; dmarc=pass action=none header.from=amd.com; dkim=pass header.d=amd.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amd.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=mhCRgaBSCgretwY5zy3wseRZpaiwHGF1ZHdbZV3c57A=; b=cZp/qkeiqTj/aD+JThoqGkun6I4lYbC/tG91xRGAPnPKaU1DhBegYupYZM4kRXsvyHcgXu6r1ynphvSf57aQ2S8FmQ1Q3H0xgoPD5WkGwVle5ggxiJvRREtIjKPiAcmHioYAE/djJGKyFnwn2P7sFgwTiedLFQg+dVCMNvrbE24= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=amd.com; Received: from DM5PR12MB2504.namprd12.prod.outlook.com (2603:10b6:4:b5::19) by MWHPR1201MB0253.namprd12.prod.outlook.com (2603:10b6:301:52::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5438.15; Tue, 19 Jul 2022 01:08:17 +0000 Received: from DM5PR12MB2504.namprd12.prod.outlook.com ([fe80::ec80:e3fd:e3e2:605d]) by DM5PR12MB2504.namprd12.prod.outlook.com ([fe80::ec80:e3fd:e3e2:605d%5]) with mapi id 15.20.5438.023; Tue, 19 Jul 2022 01:08:17 +0000 Date: Tue, 19 Jul 2022 09:07:53 +0800 From: Huang Rui To: "Yuan, Perry" Cc: "rafael.j.wysocki@intel.com" , "viresh.kumar@linaro.org" , "Sharma, Deepak" , "Limonciello, Mario" , "Fontenot, Nathan" , "Deucher, Alexander" , "Su, Jinzhou (Joe)" , "Huang, Shimmer" , "Du, Xiaojian" , "Meng, Li (Jassmine)" , "linux-pm@vger.kernel.org" , "linux-kernel@vger.kernel.org" Subject: Re: [PATCH v4 13/13] cpufreq: CPPC: remove the acpi_disabled check Message-ID: References: Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-ClientProxiedBy: SG2PR02CA0091.apcprd02.prod.outlook.com (2603:1096:4:90::31) To DM5PR12MB2504.namprd12.prod.outlook.com (2603:10b6:4:b5::19) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: cc1db5e5-d15c-41e5-53ef-08da692329b3 X-MS-TrafficTypeDiagnostic: MWHPR1201MB0253:EE_ X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: YdbQT/GQX/vAIo203twcdDBxoKFzXBTznNrvurKAJt701x2p4LIc5oMGZjgcaxOGqVn4vh3vuj//X3zhvjSreFI5SlN9oP7g7TsfcNBtfsZIdiwkVgiT72kLfH2vJnykVDNOwbtxrQtDJ2cxINRYnJS9ELHt4rscjBL28r7qRMeVgj/E7Gqz1R/haVXPHOMrrPW5D48HUYxT6Zlg0hfP9vm6VjITkeG3+pYgHIUC2QoIOrvZrS57QeCyB3EAnGLK4zJvgsVCdC1+4X8PUbYZOFGIove9ZvN9XEgpVuzwH6btKpXRrSZ+vQlmOwwQVaGuwG+9BRawJw1tNfsxsogcVVmOyrhWKH6w/NBM7ysa6ElVnj1uTYl6xgy9D8LsNs6vDt/8HbVTbS3pOX/K9/ECITrSJSpS8jXEGspQsRkSe9GGBRfTl5rcfW4M1+jHYHeq0n55s9CCcKnuN7nIHg1yHvQPMzDvSWRiejqYJZDqKMWsqjMmlDXfVaOWom3UOHoZE99ybD0RcLFpxiJOV1P8hCpoOGmtdmrciIDbO37JkegPFxlyn0WUsQbNz6WktyLa1QmwUMW00YVjuMvAqVz4d5ZnAiQmpfD4uryOBzh8da8R0cEovJQgEay8iqurAsMepkx6XVVlwqPvVksIYB3vN+UMzUoY+hp4dJczbLSTKCZkjiBWYajdrNrMus3yeMDNIwv/KrmOYBcZShwE8RngjZ2Bpp422wQgNthR8HwdS8Pp4SJnZ+Tr4dIIeKkN26pp X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:DM5PR12MB2504.namprd12.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230016)(4636009)(376002)(136003)(346002)(366004)(396003)(39860400002)(8676002)(66476007)(66556008)(66946007)(8936002)(4326008)(316002)(6636002)(37006003)(54906003)(86362001)(36756003)(6862004)(2906002)(38100700002)(2616005)(186003)(26005)(478600001)(41300700001)(6666004)(6506007)(6486002)(4744005)(6512007)(5660300002)(83380400001);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?iTIqHZ6DJAMwP4EI6siyU88qHLpppXj03TCmg/tflKBAoJYc1s7xR2L4AhWR?= =?us-ascii?Q?+oFVjs/UehfROfYEPgTs47fLFGR4yn1F6xiZSKDTVIokIy+rDpUL+ePQYX7N?= =?us-ascii?Q?djF82sT9WRWYjLSt/IrH0/f/OJyiN0M5HRtkPQPxMmM212n+VyJ9RNDHiPAf?= =?us-ascii?Q?43dUc60Xesb99HEIsRc6crhVCLcM6ru89j17vOAzt5POKPwbdGUq7Zz1PR9D?= =?us-ascii?Q?0R8TG70YBwlraMLDQwcpTKgo0s+lJy83vG1p26ymE3bce7EcuLQQWNc806AU?= =?us-ascii?Q?XiTA7boc5zw6YBecwlILfMTecK439m7hQLBmC2L9TPA0PAE2NwJs7tmOfgnU?= =?us-ascii?Q?3Snse93Qfb18suPquK+ePXLsGgv2mRh9LNJGMd317B9pRr2cX8V2G3bCcs6Q?= =?us-ascii?Q?oTft+F0TBAlykU0WehBzVsvDkmdyQCexO2KMHn/QujiiwozAzZsXXG00aJt+?= =?us-ascii?Q?C9MeDhhIzbO1jyBqJXGyGadrTjIY0cCznc0R8BnOXoHKPS0dvc08slJjhwNz?= =?us-ascii?Q?cLLQVzTdew59ykQVzAbdVpcaWJ7aOs7thPk2bv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QBTvFRyD+lytQpnNjPVBWRDCP0YCq+ec2AuBKf?= =?us-ascii?Q?KE7bffoojM8Mxurk3zYai50wZABw7fmZwjCfTIupB15CRS65+0oU4tkSGlrg?= =?us-ascii?Q?S74pxnTJu7GKjwLQc9byGFHajls+4NQ7wvDOkie+?= X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-Network-Message-Id: cc1db5e5-d15c-41e5-53ef-08da692329b3 X-MS-Exchange-CrossTenant-AuthSource: DM5PR12MB2504.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 19 Jul 2022 01:08:17.1830 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: wihGuIleXO+05eo2PuYBWRgdUTbbT0vjF0Nae0M4FnlmX13LHjLpTvU9Fn9yRn6opRbiekCw+ILzMBxx1eHZoA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: MWHPR1201MB0253 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, RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,SPF_PASS 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 Fri, Jul 15, 2022 at 06:04:32PM +0800, Yuan, Perry wrote: > "acpi_cpc_valid" function already includes the acpi_disabled check and we can > remove the duplicated check here > > Acked-by: Viresh Kumar > Signed-off-by: Perry Yuan Patch 10, 12, and 13 should be one function update to move the acpi_disabled check into acpi_cpc_valid(), should we squeeze them as one patch? Thanks, Ray > --- > drivers/cpufreq/cppc_cpufreq.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/cpufreq/cppc_cpufreq.c b/drivers/cpufreq/cppc_cpufreq.c > index 24eaf0ec344d..9adb7612993e 100644 > --- a/drivers/cpufreq/cppc_cpufreq.c > +++ b/drivers/cpufreq/cppc_cpufreq.c > @@ -947,7 +947,7 @@ static int __init cppc_cpufreq_init(void) > { > int ret; > > - if ((acpi_disabled) || !acpi_cpc_valid()) > + if (!acpi_cpc_valid()) > return -ENODEV; > > cppc_check_hisi_workaround(); > -- > 2.32.0 >