Received: by 2002:a05:7412:e79e:b0:f3:1519:9f41 with SMTP id o30csp190392rdd; Wed, 22 Nov 2023 13:01:27 -0800 (PST) X-Google-Smtp-Source: AGHT+IF5cNiR83c5gn/ZCy6HvYSle66jsiEHth/fXoDWYe1mOdBd1fXWseMGFkDqPncvoR+R5gxp X-Received: by 2002:a05:6808:1986:b0:3ac:aae1:6d64 with SMTP id bj6-20020a056808198600b003acaae16d64mr4412449oib.2.1700686886974; Wed, 22 Nov 2023 13:01:26 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700686886; cv=none; d=google.com; s=arc-20160816; b=mqQxw/fhDLZoRpfE4IIaYtzeB4nWCzG6rx3KNSA6NBrZgie+MOc44Dx5dzMXWSrsMJ xs9AFOkRcarTDVdVOgk+IyWIQzcl1gFWilR3AzoKiK5KDRjKQdCo1L2z6kEC0BKQr7W9 uGel1lrlaHwO2Y7LvJVGF09DuXuUrFRWbhsLBcTpwtOsy+sLXykF3B7Tj/Ee0M82W7xz HCfcEQA+BCXu+AMn2fxJw4/IRSP2LnA5ddtif4V6RvyPgtKAVO6nULjpOd3fPZPHcVlg 3pjBUGrGLCsjGswXFL9jRxS261dtzRNbqgqDN99s+FinykBUgp7iCdH//9fR3YwwkC5w Z8jA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=XkT9G3qqP8wP1lV1htvK6GCDZhQax3ymzPmgu+fDxIA=; fh=QpEl8e+9kJQIWYNFlJCjNKf2HdQkMTAQw2mF0DewSng=; b=Nn1JrNOiGBvnHrELBUIIqH+DTFuO4AgYlFhjTv6K7gGoRwUSxZwEBQ48ISA1n17MjE UPPO+lnc0aQsf4DtvnDO+kstltg/VCozDYAq2Q2Anl5Py0o44r+5FfoK7OV6afgHGEYB eBEGfD0BcVgDKLS2Q/ZCQZnoNYp8uMmoTV/yB4jU29TWiqcT9FdrRwp63XuVY5aVBpIJ HaFGO5sZNmZpkZm3eyTW4dSuT6EUDk7Oe858bUcer1VIWCKTzmQCKpxyA1kWjw6cJWd2 2A4x3dCR+tVCPUEzLnzE9GbewU5/6/Yaygw+Vv2Ix7ijJ+ehcuc/lJQDuDbGd4O32oME 5TVw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=n+DAYlma; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from agentk.vger.email (agentk.vger.email. [2620:137:e000::3:2]) by mx.google.com with ESMTPS id z22-20020a63c056000000b005b9053cf6f2si248213pgi.163.2023.11.22.13.01.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 22 Nov 2023 13:01:26 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) client-ip=2620:137:e000::3:2; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=n+DAYlma; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by agentk.vger.email (Postfix) with ESMTP id 2AD0181F4711; Wed, 22 Nov 2023 13:01:24 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232311AbjKVVBR (ORCPT + 99 others); Wed, 22 Nov 2023 16:01:17 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34110 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231596AbjKVVBP (ORCPT ); Wed, 22 Nov 2023 16:01:15 -0500 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B87DF1A4 for ; Wed, 22 Nov 2023 13:01:11 -0800 (PST) Received: by smtp.kernel.org (Postfix) with ESMTPSA id D8FCBC433C7; Wed, 22 Nov 2023 21:01:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1700686871; bh=LFJYP+QjzywPPTWxrzmRwkBKvDt/8qXL2sn05QMF5tk=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=n+DAYlmapEZKrvTtUqKHYNU1PFaL2I5a3UWtBmUXQnpFrfGztZvuFATKxUxEua+km o9poCmNBo3TSnLW8W00G5Aublxu5IHhZdFDhkcxDpbLWR0FA5kcXnQClCAXVzv1yE9 wMc/KP+WN3bwkqrEH/dFx8f4jlZ5ovi/mjLtORd7JUQfO/xmzRxx1vTiuez7FIjChU Gp8OcAXR4KM6kjXJ8KMA99gEH4cJFtjXYdYO6EAJQ6zJHYbjxsWl2fLjygceo5x1cA HbRyx4cb968mZf8x0Q1/ox9qbFm2KUBBvEvCTbSeaali2AzdhrNL59WN/whMesx+C2 T3LF4R2qu3cfQ== Date: Wed, 22 Nov 2023 22:01:07 +0100 From: Frederic Weisbecker To: "Rafael J . Wysocki" Cc: LKML , Daniel Lezcano , linux-pm@vger.kernel.org Subject: Re: [PATCH 2/2] cpuidle: Remove unnecessary current_clr_polling() on poll_idle() Message-ID: References: <20231113220326.7933-1-frederic@kernel.org> <20231113220326.7933-3-frederic@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20231113220326.7933-3-frederic@kernel.org> X-Spam-Status: No, score=-1.3 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on agentk.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (agentk.vger.email [0.0.0.0]); Wed, 22 Nov 2023 13:01:24 -0800 (PST) Le Mon, Nov 13, 2023 at 05:03:26PM -0500, Frederic Weisbecker a ?crit : > There is no point in clearing TIF_NR_POLLING and folding TIF_NEED_RESCHED > upon poll_idle() exit because cpuidle_idle_call() is going to set again > TIF_NR_POLLING anyway. Also if TIF_NEED_RESCHED is set, it will be > folded and TIF_NR_POLLING will be cleared at the end of do_idle(). > > Acked-by: Rafael J. Wysocki > Signed-off-by: Frederic Weisbecker Please discard this one, I'm taking a new way to deal with that. Thanks. > --- > drivers/cpuidle/poll_state.c | 2 -- > 1 file changed, 2 deletions(-) > > diff --git a/drivers/cpuidle/poll_state.c b/drivers/cpuidle/poll_state.c > index 9b6d90a72601..d5cb3eb85a54 100644 > --- a/drivers/cpuidle/poll_state.c > +++ b/drivers/cpuidle/poll_state.c > @@ -40,8 +40,6 @@ static int __cpuidle poll_idle(struct cpuidle_device *dev, > } > raw_local_irq_disable(); > > - current_clr_polling(); > - > return index; > } > > -- > 2.42.1 >