Received: by 2002:ab2:710b:0:b0:1ef:a325:1205 with SMTP id z11csp201613lql; Sun, 10 Mar 2024 22:27:43 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCX0BJBppZhBE8ST6k0qSrCFuxp7bj8GQ2sAECRfLqwEczO3N8cq+AA6G/7/AuvCghJITvaAgdSIG/2Vkgtopx5dcjmJL4OVozQXdwo8CQ== X-Google-Smtp-Source: AGHT+IFS8eQLaukyfq90RmTkL2S+zWRztn+9MB2i7GtccOPtQuYxDSRxZAu3oDnzxHWOwNH9ajGI X-Received: by 2002:a17:90a:4985:b0:29b:ce32:82ca with SMTP id d5-20020a17090a498500b0029bce3282camr6951040pjh.16.1710134863211; Sun, 10 Mar 2024 22:27:43 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1710134863; cv=pass; d=google.com; s=arc-20160816; b=MreAmRomjBW4ulI6DjDWZRGZlB/6uMejp2xu9EWj+nyZJt3h5NzbCppWEZstCrxS8j 6GPm9nW8Jhuj7mpID68rMTaVZLegYHRPw3uP/hz65JCO7nwmC94UynSR3rj/mRYEJHWk ieiOh4PN59b43oq8StmqDl1GK6xhI4NFs4zi3vbC9+L8VUVfnP9nHkBacTmGUsIsTGfa fau/2mckZO9zmYiiKl6FaHiZIGXAu6Sv/xp30TqVpJBEk08+0NdT4f1ZV6805uq7vLtd poJZ3NKDfPI+p48paIZTn2YNP8zPHlJUaDTetSWuybFX3AQMb5TehFzW8n9kea80s8Nr IfMw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=/QS4flGaV72pHQT1zN8FWRnbbRvdTfxPqlBeYm8/pq8=; fh=6VHES06FtSWmddc/S4FhRRZGRmqlUIg+eHGwVvoPrg4=; b=ta+uBTlPlccWDZA80eyaMPzN6WChxjMRi81tOsvig0lvJUyj+htDoYw5qTj1jhKcsr t32ngSrvk+zJ9oE7vp1PTxR4iNiVRPmVPVUlLt8/H1REM5Plf+wShqQuqUhVVjX8DFN8 fONONV3JnwlW9sEUoLmr7pfhMo+D1Otj2GPutzKSjXTg2dnVqvOxI4H4s7ggNIH95M/i xc6udDrJn8gTAQDrg5pLOdQ9BaeDrIRr88XLi3l8KwoD2tb7h599B0N+MEiz4OflFRaY 5VIAzBz2tVOiKpvm9/K7zIsE/bRfaImHCY3JTeKC/OX9QNUOvkk0sX4OJBoXfbZvr9Du uyWg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=FUjoOWE7; arc=pass (i=1 spf=pass spfdomain=ti.com dkim=pass dkdomain=ti.com dmarc=pass fromdomain=ti.com); spf=pass (google.com: domain of linux-kernel+bounces-98474-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-98474-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.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 b1-20020a17090a990100b002995be1ac13si8124753pjp.97.2024.03.10.22.27.42 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 10 Mar 2024 22:27:43 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-98474-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=@ti.com header.s=ti-com-17Q1 header.b=FUjoOWE7; arc=pass (i=1 spf=pass spfdomain=ti.com dkim=pass dkdomain=ti.com dmarc=pass fromdomain=ti.com); spf=pass (google.com: domain of linux-kernel+bounces-98474-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-98474-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.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 14D29B207B8 for ; Mon, 11 Mar 2024 05:27:42 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id C2289AD55; Mon, 11 Mar 2024 05:27:32 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=ti.com header.i=@ti.com header.b="FUjoOWE7" Received: from lelv0143.ext.ti.com (lelv0143.ext.ti.com [198.47.23.248]) (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 C1C7EE54C; Mon, 11 Mar 2024 05:27:29 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.47.23.248 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710134852; cv=none; b=fBp8fdEyEvbn99Jkj24EmbldUzFMumAjDGGhs2+g1ueppmjeWV8wcWqEOQQ4CaO/+Hk1TGDaxt/ttnWe1flNGj8rmHRZILJuIUH0D8F6Kk57LBTaedBLwF8BBM8Pt+riuPWSng0aAD4RDsHZysP9AS9mGs5NSPUmdZdj7NRRTlE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710134852; c=relaxed/simple; bh=Lj1Ko0OaD1ZRf1I5oKT78KNZ+mBUf0V0V06Nyns5m5k=; h=Date:From:To:CC:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=HRrax13gjfu9Wn/lR65PGGN4B94rtKqDPxbWW1Uzl5t2aUhNn/riSQKWRft+NoxMTfLy9755D5hkzA8rcS5uku8b02zdEbANfALn9iHit8UWJFPOqflYhUwjjWzKqW+sqJ9wpgiuCHLvqcldix6LJQKVhGJEgGhTh/0nNHc49WU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=ti.com; spf=pass smtp.mailfrom=ti.com; dkim=pass (1024-bit key) header.d=ti.com header.i=@ti.com header.b=FUjoOWE7; arc=none smtp.client-ip=198.47.23.248 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=ti.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=ti.com Received: from fllv0034.itg.ti.com ([10.64.40.246]) by lelv0143.ext.ti.com (8.15.2/8.15.2) with ESMTP id 42B5QrOV119765; Mon, 11 Mar 2024 00:26:53 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1710134813; bh=/QS4flGaV72pHQT1zN8FWRnbbRvdTfxPqlBeYm8/pq8=; h=Date:From:To:CC:Subject:References:In-Reply-To; b=FUjoOWE7KLA08lIzNTyvuuNwKDC8S1x6U2Er8yPUg9q0msDJ2kkm6uzsXA5uJKBsq 2k8gKKf0LWcu2WyhHfNGOhbntjoNmrelrfIRW+6mygkpnSqhUG6HY8EDZVNgPb+UH1 BxVVjoBKjDgjcV9pu9XpCI1dlesUADx6O1W67a58= Received: from DLEE107.ent.ti.com (dlee107.ent.ti.com [157.170.170.37]) by fllv0034.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 42B5QrZn108507 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Mon, 11 Mar 2024 00:26:53 -0500 Received: from DLEE105.ent.ti.com (157.170.170.35) by DLEE107.ent.ti.com (157.170.170.37) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23; Mon, 11 Mar 2024 00:26:52 -0500 Received: from lelvsmtp6.itg.ti.com (10.180.75.249) by DLEE105.ent.ti.com (157.170.170.35) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23 via Frontend Transport; Mon, 11 Mar 2024 00:26:52 -0500 Received: from localhost (dhruva.dhcp.ti.com [172.24.227.68]) by lelvsmtp6.itg.ti.com (8.15.2/8.15.2) with ESMTP id 42B5QpPg086960; Mon, 11 Mar 2024 00:26:52 -0500 Date: Mon, 11 Mar 2024 10:56:51 +0530 From: Dhruva Gole To: Viresh Kumar CC: Sibi Sankar , , , , , , , , , , , Subject: Re: [PATCH V2] cpufreq: Fix per-policy boost behavior on SoCs using cpufreq_boost_set_sw Message-ID: <20240311052651.uedxt2wvywqlrsac@dhruva> References: <20240308103630.383371-1-quic_sibis@quicinc.com> <20240311045044.7vvzbsx5nqs5a2lr@vireshk-i7> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: <20240311045044.7vvzbsx5nqs5a2lr@vireshk-i7> X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 Hi, On Mar 11, 2024 at 10:20:44 +0530, Viresh Kumar wrote: > On 08-03-24, 16:06, Sibi Sankar wrote: > > + /* Let the per-policy boost flag mirror the cpufreq_driver boost during init */ > > + if (cpufreq_driver->boost_enabled) > > + policy->boost_enabled = policy_has_boost_freq(policy) ? true : false; > > Can be written as: > > policy->boost_enabled = cpufreq_boost_enabled() && policy_has_boost_freq(policy); I would like to recommend the same. > > Reviewed-by: Viresh Kumar Rest looks fine, Reviewed-by: Dhruva Gole -- Best regards, Dhruva Gole