Received: by 2002:a89:413:0:b0:1fd:dba5:e537 with SMTP id m19csp768910lqs; Fri, 14 Jun 2024 05:24:17 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUPp9ghQEjmxFcjiogyWwq1NqtiIXjREt15ku6XOofZpLckmRMv2NnnQALQWxDceeEcJfl7pah8xevFljsN6+a4J7UOa+eSXIaXYsCGqA== X-Google-Smtp-Source: AGHT+IH4/BCqkFHnropZUHZN7mCNPc+dr+S2HFgDukfm856O2IfKya0mjXZ8caJb5XziJRnk0F81 X-Received: by 2002:a17:906:a849:b0:a6f:4be5:a661 with SMTP id a640c23a62f3a-a6f60d460e3mr153764366b.46.1718367857179; Fri, 14 Jun 2024 05:24:17 -0700 (PDT) Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id a640c23a62f3a-a6f56e8215esi170482266b.1035.2024.06.14.05.24.17 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 14 Jun 2024 05:24:17 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-214870-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@hotmail.com header.s=selector1 header.b=D+afaoxL; arc=fail (signature failed); spf=pass (google.com: domain of linux-kernel+bounces-214870-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-214870-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=hotmail.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 249321F27BB5 for ; Fri, 14 Jun 2024 12:13:20 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id EA3AD19645E; Fri, 14 Jun 2024 12:13:11 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=hotmail.com header.i=@hotmail.com header.b="D+afaoxL" Received: from JPN01-OS0-obe.outbound.protection.outlook.com (mail-os0jpn01olkn2021.outbound.protection.outlook.com [40.92.98.21]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 5E1EE13BAC8; Fri, 14 Jun 2024 12:13:09 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.92.98.21 ARC-Seal:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718367190; cv=fail; b=MlmqRlzaqRKs9iTa2nPfkkgyGR483vy0NElbtQN8mLodgD+TUkfbxPIQ7UbfiSVhajQ3gXxz+CNkH4qrM0MlthbCYCjzyZ2SSH0ikMnhmXSR9K4iqmnhNs9YwLULTEByBRI4OH/nDx/96Ar+F9dV/IVXw4KYJfewelwkKLIAYQQ= ARC-Message-Signature:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718367190; c=relaxed/simple; bh=s/S1AbkEw5boYCzD9+3wJAwCeZYMR7x6bMfZUI98uDw=; h=Message-ID:Date:Subject:To:Cc:References:From:In-Reply-To: Content-Type:MIME-Version; b=QzyQ2GnhN4SUwYdqmPZlqhM4mvt5ciDzyd7+Z4acyyuQuK9GxMGGmgDSr5ru9eyirxZDgTC451ZBYR63/Mp4RDc46TTwtk/wdI1Z3jGmUyhsn7mTXBJtXhZDadkZBO5WxKded4zF1sVRtoS1ZJg8guWQPH31jmm43MhQ+MaK45o= ARC-Authentication-Results:i=2; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=hotmail.com; spf=pass smtp.mailfrom=hotmail.com; dkim=pass (2048-bit key) header.d=hotmail.com header.i=@hotmail.com header.b=D+afaoxL; arc=fail smtp.client-ip=40.92.98.21 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=hotmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=hotmail.com ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=ThXS030NkDBrxYNdNhhyvm4q1FuE3XTY1g3+SFaCIrnefcrDa5G8YV0XxUYnRjMQnHP7U56uxIRIyRbdLPtpehRTQqrgfL4XHRDTEXkwlGuadFIh4uU4ss2o7q5HvNoW5HJZTQilRBgwLulHUzY86RE6zEyUVwDUEN/sk4//OjQhnXd99nK75R2vAVb24x2EjqV3ikl8smPZyiF6So+eREPve8RGvLUdRShNjrTphYn7EoY3V+ets5Ckle3K89Vk/SNOQV1YzDNCDf7oeC2m+QCZUjTc7//cwO3fyrauQuHsccDykAWyNGK/ZObvUZdf5QBqX9SMuTQevUshDB7PZg== 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=1HhuG+tchywiRPvCCRkbnT5Vf2kZltnT51pUeBaaKdE=; b=MOoYekuKPxD3tI2da/J7PfUWQCxBSh/AA5lRWa/FdgsKgVmtcYtq6R9qwLiDOrWN3nVDLXmTgTFAagGtssAa/B9rkfkIOu2pndzHZPuALlapWTN/Rg19wHVEvA/TcI3iuwyJEZCwpPcS6PxFNzOzS1AoA6OJKcxKmeavS4AJn+LI9GBehHmxlHjPntWvN3jQqKlk7rBU1rxcTKxWb9wFm/VPDUA5dyQgyncjuAtx5CU3kYVqX2b7JP5fDgg/59bmklrOAeE0IbMpugHUkPHwYJ0+XZ6HwUg+Vv3d7CzhW8Gznqvw0CvHSmcmBXZmGe1yQxhlQaoK413VvXOcbP09/g== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=hotmail.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=1HhuG+tchywiRPvCCRkbnT5Vf2kZltnT51pUeBaaKdE=; b=D+afaoxLAgvSHszQQMhCBfsVZ24Lcfzm3Ol6SwPlaweWVvhT3HqlEmtbUvHrnLtqWr0+hDgaG80/T+4GQYO22WwQv3jNTqeIRlGXu6fgcSYXR3cSAVOYHbDK/0V7RrQ+2VieCY7+4bx1ikNyllQPg5dfK8beDrYrKAj1ETxWhvByce1L8nLTJNQyBdDCoAT0MvvWXdUYgtuYdmcjtkgTKjGotMNKiztDZ+vGKvDe6Vt9Xw2bKZ3UFVjL+EItqM/pAcamYcE2aaOZ2sNVZ99B5ADAjvyD5u3n8+6GVpn8x+VrOm+QHh7wIHgr1xsZAzmsSJ2rsTUlFWfQqUV448vTyw== Received: from OS3P286MB2490.JPNP286.PROD.OUTLOOK.COM (2603:1096:604:1f1::11) by TYWP286MB3382.JPNP286.PROD.OUTLOOK.COM (2603:1096:400:2dd::5) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7677.25; Fri, 14 Jun 2024 12:13:06 +0000 Received: from OS3P286MB2490.JPNP286.PROD.OUTLOOK.COM ([fe80::1167:655a:7fa5:5cef]) by OS3P286MB2490.JPNP286.PROD.OUTLOOK.COM ([fe80::1167:655a:7fa5:5cef%4]) with mapi id 15.20.7633.037; Fri, 14 Jun 2024 12:13:06 +0000 Message-ID: Date: Fri, 14 Jun 2024 20:12:59 +0800 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v3] cpufreq/cppc: Remove the desired_perf compare when set target To: Viresh Kumar Cc: Ionela Voinescu , beata.michalska@arm.com, rafael@kernel.org, linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org, hotran@apm.com, Riwen Lu References: <20240530061621.36byo5a2iqc6o2az@vireshk-i7> <20240606090737.z3qenphikjs5ijj4@vireshk-i7> <20240611091049.lrypvvluntf37uff@vireshk-i7> <20240612062404.yjfduze4bvgyts6a@vireshk-i7> Content-Language: en-US From: Riwen Lu In-Reply-To: <20240612062404.yjfduze4bvgyts6a@vireshk-i7> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-TMN: [HWTlcsSL2YB/qAPF+HbqkmnwByVLGVpm] X-ClientProxiedBy: SI2PR01CA0030.apcprd01.prod.exchangelabs.com (2603:1096:4:192::15) To OS3P286MB2490.JPNP286.PROD.OUTLOOK.COM (2603:1096:604:1f1::11) X-Microsoft-Original-Message-ID: Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: OS3P286MB2490:EE_|TYWP286MB3382:EE_ X-MS-Office365-Filtering-Correlation-Id: ed427f30-4eb9-49c0-1f11-08dc8c6b58bd X-Microsoft-Antispam: BCL:0;ARA:14566002|461199025|3412199022|440099025; X-Microsoft-Antispam-Message-Info: xU/zco++OmyUXubIYZn4JGW4fF6wvhq5k3SOm5YGy4INymZd+dyVoI6mRI81URiMw+wOFDM0rgkQEJ56pJci4s5ymkc01C6rP3MNzK983fv16Avm0sUe3NhWqqmCg8vxdPKvggZgclbvEZ4zOWxZh6QnzPFawgw2hy2FIGtU0JF0iVKFFzFz3IjV59XSqG98qIa2lkiGcSAVVDnOXEmF+qtfkz6YiKFtWynIH4lFm7aOLHoC99dezVBVyuLO4a6vy8UvnU5S4IwnLvlP1t0F4PJAwFiH8WGF2IL/mLnCGUw5Ar7CHeFTq6e+Pw8BUc1Amy2uzuXO8pX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1NQZEo1SVBVeDlMcDVrNkI4SWtBVFBDMktaSnhHL1l4SS9sM2drc1dR?= =?utf-8?B?VFVKZ2NHYURqdWNZQmpuOGszc1ZNQmFZcExIR2MxWHpJVU5LWnl4ZHkxYldE?= =?utf-8?Q?D6n/CAIDX7RbnwMdoMHm5JTbWV9UKXPdjvomrmtF4CHI=3D?= X-OriginatorOrg: sct-15-20-4755-11-msonline-outlook-05f45.templateTenant X-MS-Exchange-CrossTenant-Network-Message-Id: ed427f30-4eb9-49c0-1f11-08dc8c6b58bd X-MS-Exchange-CrossTenant-AuthSource: OS3P286MB2490.JPNP286.PROD.OUTLOOK.COM X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 14 Jun 2024 12:13:06.0332 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-Transport-CrossTenantHeadersStamped: TYWP286MB3382 在 2024/6/12 14:24, Viresh Kumar 写道: > On 12-06-24, 10:52, Riwen Lu wrote: >> I think it's no need to remove the "desired_perf" local variable here, the >> code is seems more readable. > > There is no need of a temporary variable and I don't think it increases > readability at all. Moreover, same needs to be done in > cppc_cpufreq_fast_switch() too. > OK. I'll push a patch that remove the desired_perf temporary in cppc_cpufreq_fast_switch().