From patchwork Mon Jul 31 18:49:33 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Rafael J. Wysocki" X-Patchwork-Id: 12898 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:918b:0:b0:3e4:2afc:c1 with SMTP id s11csp2225616vqg; Mon, 31 Jul 2023 12:36:19 -0700 (PDT) X-Google-Smtp-Source: APBJJlFVs237gHi3w0g6j14/HgkIogNCDGrU38U2rNWD7piEGCK9F+zyn+7iaeNbxipOfDEdIRaM X-Received: by 2002:a17:90a:13c9:b0:267:8012:b393 with SMTP id s9-20020a17090a13c900b002678012b393mr9964293pjf.34.1690832179612; Mon, 31 Jul 2023 12:36:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690832179; cv=none; d=google.com; s=arc-20160816; b=MR7wcX5qiTkaL61aIc2vySQ6XgjkUAYrUpuMtiqPuLaPhpRzdLaFlWFP9UNRDhbxYK dtblmBrv++9gR0PeqCMEmi7RF2J9aPOAPZl/LO7Uz1tveIT165ukAArXddkFcvO0pyfs jLETBDtKpe+XSfXsVixC7EtqT2pV5eo6y6KOGV66Wb2sIKu1Ho7exBY5dJ9xm/hdrhT5 89BfO1Mi8BWpBRuXIWkYcYoV/s1mXzI4mHDfIab7AoiqcIrHu11BigH5qY3ObqRLQLM6 diyilqblEBroWheCWVbEOzWWYq6dH4T9qJj3/iUT/idYqo44sN9iZMJGPvjrGGO9ropa P3Sg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=UdhMWl2ygMfAll8QA9F7pEljX4Ai2nhwDjGGm3Zee1U=; fh=vcb1WTwJPUMTZX6OxkyO+5cKBEoTRHpgQZ5gmsle4eE=; b=vWPBs3jrmgFbKyZIR+Ajjo2MEHooSXyEvrYHs6zZV6dHORkYDGQk8+LFo8uNb4Di5Q N18kzhe1BiovFLDdMVH2WP1tDV0Z/bHrwGJAFPvmy4XFlFv3VYiBA8iioWjz75Qt9lVr jKzBZpGTWG7FmrWGgDvoM+D05nfYX0u27r969NrRz8jZQPp48/SMeoWrqhYbglDgf+jq dki/kr7MsJFbsqHxPDIVMwqa2hQXLhaq2o3N0+YHRsaSuDzYGjAiUwKQvBraalPnLM/2 QFeCEKan8LUrg4i01T55802IWNkvba/7BY5jYF7AQPlUZBDLjwbo5Iw56gjkZ9tJ19hx UMng== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id d8-20020a17090abf8800b002682498d8c0si951043pjs.187.2023.07.31.12.36.06; Mon, 31 Jul 2023 12:36:19 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231272AbjGaTFI (ORCPT + 99 others); Mon, 31 Jul 2023 15:05:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42708 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230049AbjGaTE5 (ORCPT ); Mon, 31 Jul 2023 15:04:57 -0400 Received: from cloudserver094114.home.pl (cloudserver094114.home.pl [79.96.170.134]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5A42A1711; Mon, 31 Jul 2023 12:04:56 -0700 (PDT) Received: from localhost (127.0.0.1) (HELO v370.home.net.pl) by /usr/run/smtp (/usr/run/postfix/private/idea_relay_lmtp) via UNIX with SMTP (IdeaSmtpServer 5.2.0) id 1e1f3776e05a7fc3; Mon, 31 Jul 2023 21:04:54 +0200 Authentication-Results: v370.home.net.pl; spf=softfail (domain owner discourages use of this host) smtp.mailfrom=rjwysocki.net (client-ip=195.136.19.94; helo=[195.136.19.94]; envelope-from=rjw@rjwysocki.net; receiver=) Received: from kreacher.localnet (unknown [195.136.19.94]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by v370.home.net.pl (Postfix) with ESMTPSA id 6B8216620E2; Mon, 31 Jul 2023 21:04:54 +0200 (CEST) From: "Rafael J. Wysocki" To: Linux PM Cc: LKML , Peter Zijlstra , Anna-Maria Behnsen , Frederic Weisbecker , Kajetan Puchalski Subject: [PATCH v3 0/3] cpuidle: teo: Avoid stopping scheduler tick too often Date: Mon, 31 Jul 2023 20:49:33 +0200 Message-ID: <4515817.LvFx2qVVIh@kreacher> MIME-Version: 1.0 X-CLIENT-IP: 195.136.19.94 X-CLIENT-HOSTNAME: 195.136.19.94 X-VADE-SPAMSTATE: clean X-VADE-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgedviedrjeeggddutdekucetufdoteggodetrfdotffvucfrrhhofhhilhgvmecujffqoffgrffnpdggtffipffknecuuegrihhlohhuthemucduhedtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenucfjughrpefhvfevufffkfgggfgtsehtufertddttdejnecuhfhrohhmpedftfgrfhgrvghlucflrdcuhgihshhotghkihdfuceorhhjfiesrhhjfiihshhotghkihdrnhgvtheqnecuggftrfgrthhtvghrnhepgeffhfdujeelhfdtgeffkeetudfhtefhhfeiteethfekvefgvdfgfeeikeeigfehnecuffhomhgrihhnpehkvghrnhgvlhdrohhrghenucfkphepudelhedrudefiedrudelrdelgeenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepihhnvghtpeduleehrddufeeirdduledrleegpdhhvghlohepkhhrvggrtghhvghrrdhlohgtrghlnhgvthdpmhgrihhlfhhrohhmpedftfgrfhgrvghlucflrdcuhgihshhotghkihdfuceorhhjfiesrhhjfiihshhotghkihdrnhgvtheqpdhnsggprhgtphhtthhopeeipdhrtghpthhtoheplhhinhhugidqphhmsehvghgvrhdrkhgvrhhnvghlrdhorhhgpdhrtghpthhtoheplhhinhhugidqkhgvrhhnvghlsehvghgvrhdrkhgvrhhnvghlrdhorhhgpdhrtghpthhtohepphgvthgvrhiisehinhhfrhgruggvrggurdhorhhgpdhrtghpthhtoheprghnnhgrqdhmrghrihgrsehlihhnuhhtrhho nhhigidruggvpdhrtghpthhtohepfhhrvgguvghrihgtsehkvghrnhgvlhdrohhrghdprhgtphhtthhopehkrghjvghtrghnrdhpuhgthhgrlhhskhhisegrrhhmrdgtohhm X-DCC--Metrics: v370.home.net.pl 1024; Body=6 Fuz1=6 Fuz2=6 X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1772966043171321701 X-GMAIL-MSGID: 1772966043171321701 Hi Folks, Patch [1/3] in this series is a v3 of this patch posted last week: https://lore.kernel.org/linux-pm/4506480.LvFx2qVVIh@kreacher/ Patch [2/3] (this is the second version of it) addresses some bail out paths in teo_select() in which the scheduler tick may be stopped unnecessarily too. Patch [3/3] replaces a structure field with a local variable (while at it) and it is the same as its previous version. According to this message: https://lore.kernel.org/linux-pm/CAJZ5v0jJxHj65r2HXBTd3wfbZtsg=_StzwO1kA5STDnaPe_dWA@mail.gmail.com/ this series significantly reduces the number of cases in which the governor requests stopping the tick when the selected idle state is shallow, which is incorrect. Thanks!