Received: by 2002:ab2:6c55:0:b0:1fd:c486:4f03 with SMTP id v21csp175439lqp; Tue, 11 Jun 2024 19:52:56 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVQdxvHUFD6G8SHkQobYrzy4LISBP7EVpeu5ZspXHLaakMxhYwv0PwECyyhLmXEWVbEN/gZZFHIGW2A/Ukro0A7y4Nfr3dqsY28v+eD+w== X-Google-Smtp-Source: AGHT+IGoXqNQT9m0+Y4lvQsifff1X8k+or2P4hr4jI/L4gYIjy75z7Yf5vCmqT2ke9Dc+2H/xZTx X-Received: by 2002:a17:902:b70f:b0:1f7:22cf:7654 with SMTP id d9443c01a7336-1f83b6daba8mr5194785ad.28.1718160776138; Tue, 11 Jun 2024 19:52:56 -0700 (PDT) Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id d9443c01a7336-1f70114c216si58656185ad.358.2024.06.11.19.52.55 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 11 Jun 2024 19:52:56 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-210840-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@hotmail.com header.s=selector1 header.b=AMwuBv1e; arc=fail (signature failed); spf=pass (google.com: domain of linux-kernel+bounces-210840-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-210840-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 9C6C2284521 for ; Wed, 12 Jun 2024 02:52:55 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 0ABE8FBED; Wed, 12 Jun 2024 02:52:50 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=hotmail.com header.i=@hotmail.com header.b="AMwuBv1e" Received: from JPN01-TYC-obe.outbound.protection.outlook.com (mail-tycjpn01olkn2020.outbound.protection.outlook.com [40.92.99.20]) (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 51585DDC4; Wed, 12 Jun 2024 02:52:46 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.92.99.20 ARC-Seal:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718160768; cv=fail; b=XQQzlmMDJCoUxxOTWPCYN9e1RP95UYLa+jDEGb4pWrHWES+91E5MNbup4a5g/Vc9bHiVS3nwzLmyVqmI6bRGkz15VszVM3UC2bjGtwR7iPT8rO/IFyv1+bWn7vEViHuxcOf+gDXbkBk/8tGgPDkGnGTvs45wh3CaUFu18Cehcl4= ARC-Message-Signature:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718160768; c=relaxed/simple; bh=buuIiOQGoff+vz5Sd19MBnjxdZabcjz03fZ8jU9Gqck=; h=Message-ID:Date:Subject:To:Cc:References:From:In-Reply-To: Content-Type:MIME-Version; b=lfAa98XjC0yG7+55eR2LwriNHQd7JdjlLtoB6DVlWCVXiBY1mb5jRqKip/DGp0Ky+L4EEVrwK4TFq1gbd7w/7AjVIiSLYNzsvtqnakyClJIGwg7V9ZHKEudvXzXFK7GVybTlijZFcZG/jG4QMZmq+vK4bybFdfgjwevEyrQ2msU= 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=AMwuBv1e; arc=fail smtp.client-ip=40.92.99.20 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=UhMW7jGdeKtnSRQpUgFSerw4kblgDYdr+46iqHDVZMjABs5P7qAtsIY5bMN2r3QRZi5ALVhUmn+x1buSz+I44H3W+Rs3uF5s7hSGWFNkTAlGTJub+IL5z1IqHXZueDbM/esKYdn1qnWGxa9Hh23rJzLyGmImJHz8olNxYSCria5c0DpaMEuofHaFHAHqRd5sdNGYG02qx+Es+k3f4zr+gRHkW2j1n340LIYqlu19B6eO9N5623AROVIRFJtbKhbLioglFGtTQ15iOb//dkODwKSQ15SiqSBpFMBI3+srHMvUnjPnmQ0YmJL14FIZBoX0Tco4KkL/XHEqRGf/uqhUUQ== 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=mfBaPbr+1B07yA3UWFpVBv0zR1ewlCfBxFi3v76pZnQ=; b=YiJo+n2xlw5k/DUJmmjhadmr8IZlyODTshWw7fyvbpLgLsUWIpYSDjJpMhwOjuJwqDAVr5YxJedUyv3VC8W/LNOPPvihfq5Hjfj88SLCIYSKO9r7mIuKXnCgKf/NuAXcSxn7XMDqjDQ8wm4ZD+zU/ImYGIbKBoxAyMpbiAALmLV6qJtdw03bxGXHoVgUBqcjxvEIpMXnOQfIll/K+/lxQWj+ADO4Z8nm0FmiLE5L7zgnhlOLn0ulAr3UmJ3CG7pyQzu1xxqYj9Omno9jv9Fk9TT2w0zQXRW3RvQxUEdm1o6JY1v+Z4ch3S6t1mp/kg2VjQQwQxcW7bXNe3J1KkYBnw== 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=mfBaPbr+1B07yA3UWFpVBv0zR1ewlCfBxFi3v76pZnQ=; b=AMwuBv1eGnSs6NDWndXtkIkK3erYFNaTBfzltLb1FfP0qgksq/E1CtApgqF86TKDg5Ir6Xguh6iJuOr2UkTcn4zPrv/rQLjwruUSV0mUiup7b7ATG0qDJxBOaBXhC2YET1PZw0WrMFHhTHHizuI37i8A2IU4TiRrlFkmMTjT8tQuDKi9bbv+RhrBTziIz7eXb6DALL8alLV1COrhky5gRgChHMFU7UeeiTpN6h/zZ7x2FpwA6CAmveKHQzMaPtEG0mtCekKWSaD1jskxggJjIKHOZACk0UHD/sNDrqEzEYeINEZey8txsZLiG3B3797lR/zgGSvU11BLM9rt50EqnQ== Received: from OS3P286MB2490.JPNP286.PROD.OUTLOOK.COM (2603:1096:604:1f1::11) by OSZP286MB1485.JPNP286.PROD.OUTLOOK.COM (2603:1096:604:1a6::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7633.39; Wed, 12 Jun 2024 02:52:43 +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; Wed, 12 Jun 2024 02:52:43 +0000 Message-ID: Date: Wed, 12 Jun 2024 10:52:35 +0800 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v3] cpufreq/cppc: Remove the desired_perf compare when set target To: Viresh Kumar , Ionela Voinescu Cc: 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> Content-Language: en-US From: Riwen Lu In-Reply-To: <20240611091049.lrypvvluntf37uff@vireshk-i7> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-TMN: [Vcye6qVrRSyyp3pLxSPKrxTethtFDSjt] X-ClientProxiedBy: SI1PR02CA0039.apcprd02.prod.outlook.com (2603:1096:4:1f6::9) 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_|OSZP286MB1485:EE_ X-MS-Office365-Filtering-Correlation-Id: 35143306-7307-42ba-7749-08dc8a8abb64 X-Microsoft-Antispam: BCL:0;ARA:14566002|461199020|440099020|3412199017; X-Microsoft-Antispam-Message-Info: QwlrkyzcTYr0CFXW+vmL8VcZxvzgjYmADSfRqyGjBnbwxFYOs5pG875rDWXPydbqlbN64QXl0JtYSA7JOGUwMEGOsoHJJU50f4wJUQSAfXsn/JqXUqOT6OmOPjI4jC0ERcF1fajUTjbEb3QhFo8uqcUfsR45tGOnbTIpJwXVhjdNt4kmB1+yaoTQT6PTlQVL9SQXPo9byJ51UQO97eufmeY9vHA3kX9HMW9vUfeG2KczJgutDXV03lF+UPhhpbSVyAhbBGxYPIlTgO4ndLvw8Et5fJ1h0/H73osRgdRNm4xpg+4EU+aTnUrtzxc+PGO2pd3Jg7RxIgJCxPI5ghchpu7RYCvVjnS/wtTueSeTgqvDWMiy8dYmwQZCaOB+5E3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V0VqRkhmdW1aWTJPVUg3WERi?= =?utf-8?B?dVpqcWs2WE5rMmVUeGhvUklxODF2Sk02Tlo3UHJLakZmUlVxUnpwMmlXbVNm?= =?utf-8?B?Z3pLVUoxNnZpY3pxQlpsM3BQUU1tZ3B1UnIzWHllM1FTSksrUDNpNHRGdktR?= =?utf-8?Q?yxswDG4L0kZ1xKgVywusXxXz8kVMGnq0vqKPQKlJ8/OM=3D?= X-OriginatorOrg: sct-15-20-4755-11-msonline-outlook-05f45.templateTenant X-MS-Exchange-CrossTenant-Network-Message-Id: 35143306-7307-42ba-7749-08dc8a8abb64 X-MS-Exchange-CrossTenant-AuthSource: OS3P286MB2490.JPNP286.PROD.OUTLOOK.COM X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 12 Jun 2024 02:52:43.7371 (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: OSZP286MB1485 在 2024/6/11 17:10, Viresh Kumar 写道: > On 11-06-24, 09:54, Ionela Voinescu wrote: >> It's alright with me. > > Great. > >> Some "nits": >> - the "desired_perf" local variable could be removed in this case. > > Riwen, please fix this and resend. I think it's no need to remove the "desired_perf" local variable here, the code is seems more readable. > >> - [note] while this change helps, we'd still need policy->cur to always >> have the latest request value (see details at [1]) for this check to >> be made obsolete by the comparison between target_freq and policy->cur, >> as mentioned in the commit message. But this is/can be a separate >> matter. >> >> [1] https://lore.kernel.org/lkml/ZmB1qKucR5fXk100@arm.com/ > > Yeah, lets discuss that in the other thread only. >