Received: by 2002:ab2:1149:0:b0:1f3:1f8c:d0c6 with SMTP id z9csp1738823lqz; Mon, 1 Apr 2024 16:11:50 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVClEyjB5A32zUPW03YD4Uo8PYhgtLdbUtRahOTkfPX/55bYyDc4ZjKKaUQILnpGg+B1lVxAJGBEThoVhvNUnX396pa7LayYonMaw6CeQ== X-Google-Smtp-Source: AGHT+IEddPgkcDnGQXxgw9/5fk7YMglFTpIKWKrzX1klG/AxiCdlxIJMNWBRKIb9LVsw53wkFzDq X-Received: by 2002:a17:90a:e386:b0:29b:46f0:6f8e with SMTP id b6-20020a17090ae38600b0029b46f06f8emr16091722pjz.8.1712013109933; Mon, 01 Apr 2024 16:11:49 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712013109; cv=pass; d=google.com; s=arc-20160816; b=FBHgcrKVKqhDTMONcnbc1wN8APoq7jOdGC+FrOBJ1aueBH9CGwCUbm0eWB5jaCQgPx yvQeEpSBWEUYGUX70VPYwYcAyZjhof7ZgsnCKG355gS34NeEjoTS1jwL+IU3ttgYJ1Ss 3oUOTJ4jMQkvnD1dm9WSAl+eVKcJN0br5lckzmDmBP9Jfc3UEQsN97bRxj6ElB4L+Kim 2PUEG1G8IjYoB8AdhZNNeOKJJQLITrkc6BcJ8SZNsLDZCFqyHlWy5SD78vBuqkWIONee x6lX9OrLYvQh3qLNHDS7yZ+ah2P4IOJRW+hnGhm7rCZ0amFaGDm9bvBQSO95ZVVzASB8 N+8Q== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:list-unsubscribe:list-subscribe:list-id:precedence :user-agent:content-transfer-encoding:references:in-reply-to:date:cc :to:from:subject:message-id:dkim-signature; bh=hHQRXmo2aZ/DOP23EIK2Ayp/OQTbGs67h/enIjBg6/c=; fh=M5m7vRyS2OJF9dOU4iZ6nCSzpwVPj0CaLaFqZwojpck=; b=Z6zsd+91QTSSHoNBgrKC8GOEUXjS5t9/LVHjPCmrjGRcZZ3yc68Dn7+McQSoVVnZax LzUnC22bB330OoQqbiI8jdjByTNddNgrBa6/pmNhcnOAnNSON4Qu3C8BTdEQZgFXS0xc sYF7gkrDLnjEQt5k2+ggGdcQl1QONmTXUeGGsf77v1w9B+qxSBNkITZLlhyRA9gXqZWB ZM7n5dh+eOBhIos2NLvOC43iUov1jtR/X8xyfAz2HyH4BYhRAj5sPTUOmkvaBc6N7U6R zDRAMAWlH+zhheEw+2lmSr7wlOLIjlZ1UugxZ3K4x9rg4sDpjJeTCfsX8gGtTZP6R3Ly l6rQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=nGZNDbmO; arc=pass (i=1 dkim=pass dkdomain=intel.com dmarc=pass fromdomain=linux.intel.com); spf=pass (google.com: domain of linux-kernel+bounces-127017-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-127017-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id x9-20020a63fe49000000b005d5434a5732si9974299pgj.456.2024.04.01.16.11.49 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 01 Apr 2024 16:11:49 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-127017-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=nGZNDbmO; arc=pass (i=1 dkim=pass dkdomain=intel.com dmarc=pass fromdomain=linux.intel.com); spf=pass (google.com: domain of linux-kernel+bounces-127017-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-127017-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 85CC1B218B6 for ; Mon, 1 Apr 2024 20:06:54 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 673BE53E0C; Mon, 1 Apr 2024 20:06:46 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="nGZNDbmO" Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.12]) (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 8F5DF3D9E; Mon, 1 Apr 2024 20:06:43 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.175.65.12 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712002005; cv=none; b=abBfyFhnpoaTF9ux6HcpqfXRIaiNDYp0+24iiiy8hFQkVoi0rvSKSmSqHbI2tlCzHxTfpwawaAvx/aOiiiqeioy4IEnW4YW9PzS2eyD7HOlvOLRpcSj7zVL9JRy/FV8gGqYXKVw/8GFm4VdlQyFZZfWdG+Pe+ho52YSEPQ3wfwQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712002005; c=relaxed/simple; bh=hHQRXmo2aZ/DOP23EIK2Ayp/OQTbGs67h/enIjBg6/c=; h=Message-ID:Subject:From:To:Cc:Date:In-Reply-To:References: Content-Type:MIME-Version; b=cZkFV/r3+tH/bqwV/12wHAXLMjLXCq7nHEfwu4XnFkBuvtsYNlDAA0OJGaDAzkxqOvIutlsZ/aH5RVeH2OPat2iqEj+i19MdA0G2Ad7JUe7CnBxdI2tz3RXhWVFGe2s2qK0UeUGK/LwVBkvqnDgX1i/28BfM0ior9J47R/SIG58= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com; spf=none smtp.mailfrom=linux.intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=nGZNDbmO; arc=none smtp.client-ip=198.175.65.12 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=linux.intel.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1712002004; x=1743538004; h=message-id:subject:from:to:cc:date:in-reply-to: references:content-transfer-encoding:mime-version; bh=hHQRXmo2aZ/DOP23EIK2Ayp/OQTbGs67h/enIjBg6/c=; b=nGZNDbmOOFRVN5WdC4fDO9BYJPrGEV6qMdy9tHNizOBb0C4MSnCtLMhc Mo5i851uLX+iIaC8DHIZ1+LI4rtQ6sqOgUocj6vN8PGaKRl+dLTB9KBuB TbDj/XPHLjrOVJ7BEFY3P1cbGA45H8JwapU/5MpvjZQI5q6WJ6WHEHOe/ 2+A2es3Xm88QHg5Guv9NeMwjcm5gKIhbVLIoZE87FNYCSZrHDD/SYSZng l0yASq+cBKDbxwMCism4d2n2p6B/ww2FYDd/tMAIrnaulrEVMvjJhbu8Q okONkpZbt5b9+2zKg4+VtfyTRRwLGPe1MmffUlSohioITVkkJwmpmXldX w==; X-CSE-ConnectionGUID: Ccqx6x5SS7a3GywE7GAH6w== X-CSE-MsgGUID: BT8j6hYqSke2r26mSlI2mA== X-IronPort-AV: E=McAfee;i="6600,9927,11031"; a="18594648" X-IronPort-AV: E=Sophos;i="6.07,173,1708416000"; d="scan'208";a="18594648" Received: from orviesa010.jf.intel.com ([10.64.159.150]) by orvoesa104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 01 Apr 2024 13:06:43 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.07,173,1708416000"; d="scan'208";a="17637588" Received: from spandruv-desk1.amr.corp.intel.com ([10.209.0.212]) by orviesa010-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 01 Apr 2024 13:06:43 -0700 Message-ID: <509b52f28a911bc11f21c217e20e769bd094f24d.camel@linux.intel.com> Subject: Re: [PATCH v1 1/6] cpufreq: intel_pstate: Fold intel_pstate_max_within_limits() into caller From: srinivas pandruvada To: "Rafael J. Wysocki" , Linux PM Cc: LKML Date: Mon, 01 Apr 2024 13:06:42 -0700 In-Reply-To: <3297274.aeNJFYEL58@kreacher> References: <13494237.uLZWGnKmhe@kreacher> <3297274.aeNJFYEL58@kreacher> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: base64 User-Agent: Evolution 3.48.4 (3.48.4-1.fc38) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 T24gTW9uLCAyMDI0LTAzLTI1IGF0IDE4OjAxICswMTAwLCBSYWZhZWwgSi4gV3lzb2NraSB3cm90 ZToKPiBGcm9tOiBSYWZhZWwgSi4gV3lzb2NraSA8cmFmYWVsLmoud3lzb2NraUBpbnRlbC5jb20+ Cj4gCj4gRm9sZCBpbnRlbF9wc3RhdGVfbWF4X3dpdGhpbl9saW1pdHMoKSBpbnRvIGl0cyBvbmx5 IGNhbGxlci4KPiAKPiBObyBmdW5jdGlvbmFsIGltcGFjdC4KPiAKPiBTaWduZWQtb2ZmLWJ5OiBS YWZhZWwgSi4gV3lzb2NraSA8cmFmYWVsLmoud3lzb2NraUBpbnRlbC5jb20+CkFja2VkLWJ5OiBT cmluaXZhc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