Message ID | 20230711-cpuidle-v1-0-f391224b3140@gmail.com |
---|---|
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:a6b2:0:b0:3e4:2afc:c1 with SMTP id c18csp268211vqm; Mon, 10 Jul 2023 23:02:54 -0700 (PDT) X-Google-Smtp-Source: APBJJlH7TA8uFzLTw/63bWCK7jaMcGSAbJH4eF/ZvPN5PPm0lmJWH4wANgSyeiZwjQLKCfxIkfci X-Received: by 2002:a17:903:230b:b0:1b8:b41e:66b4 with SMTP id d11-20020a170903230b00b001b8b41e66b4mr18142329plh.67.1689055373810; Mon, 10 Jul 2023 23:02:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689055373; cv=none; d=google.com; s=arc-20160816; b=mX5sv05w9v38OgYmmUNR3EybJtZdifdOza9149ngur0fYWnMcug1oS0wU5I0Yj/yBf rsmxsJhG1HqXlmoGPePf2khGvwSNVg2X6OPPz6yu2SU2OH1JWT39y/iKPE79Nz7k178h EmUtkdLDNJ1KrNalONTxmvTbs455bCWc1Jm5UidDNgzCaE1fVzXoBtDkZRa82t8y7xEq UX2aNs378ADh7+tsmFRDqJEbvmgubBO2MphZGwGNvpsolcS5v/bPkR/fi9Qfn2KJUsWc 0NObk21qZl5VmQXCkoazP0bIwVjc/qGxLYkFA5x1QUeCUMT3sTSRwJbtq8JBhX0Bfkrg Ecyw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:content-transfer-encoding:mime-version :message-id:date:subject:from:dkim-signature; bh=idZkGEwcPYLun83FvCWg1+YIM8kK5l5ERo4f+wG74Mg=; fh=IKlDn2abjmtvqJm9Uotgu9m7s6SHFoJLg0z2JSHIbx8=; b=AyOR+GFAD2YFbs6+NGYyYzyYozWeGYnZ8rzAGkED4deNih3cYKOg3FS+p+fEYDqN// Pvfs3hU08xfEBANs/APdplsWO1cu43CYIDDhbhSkr22dKe+7H2wnRAOdQgiIbTM/AV+s H0VP/90JOSHShXHIJHqvWDCeS7QWWD2J8uWf5Unw6y+x7GT7FXIDwLxUnfIZs/qxP4kB gPU92f41CQaf6Zf/nHBFkS16t6KRNY3gU7adMmu57hEKEjFxJdkO9H2rYmNEk5WXPzih RniNY6bumpoyGOKWREqv2LAyaVRwKWph4mO47z1VHHQ/Ec9Cd4Oiq/iJN7+Ype7+Ufve HPHw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=HQwHGoa7; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id d1-20020a170902b70100b001b8922e82e3si984016pls.297.2023.07.10.23.02.35; Mon, 10 Jul 2023 23:02:53 -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; dkim=pass header.i=@gmail.com header.s=20221208 header.b=HQwHGoa7; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230325AbjGKFy2 (ORCPT <rfc822;ybw1215001957@gmail.com> + 99 others); Tue, 11 Jul 2023 01:54:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37928 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229585AbjGKFy1 (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Tue, 11 Jul 2023 01:54:27 -0400 Received: from mail-pg1-x52f.google.com (mail-pg1-x52f.google.com [IPv6:2607:f8b0:4864:20::52f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BEE98195; Mon, 10 Jul 2023 22:54:26 -0700 (PDT) Received: by mail-pg1-x52f.google.com with SMTP id 41be03b00d2f7-55adfa61199so3907808a12.2; Mon, 10 Jul 2023 22:54:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1689054866; x=1691646866; h=cc:to:content-transfer-encoding:mime-version:message-id:date :subject:from:from:to:cc:subject:date:message-id:reply-to; bh=idZkGEwcPYLun83FvCWg1+YIM8kK5l5ERo4f+wG74Mg=; b=HQwHGoa78JiuFxic1UOWoF4nOBLTkWpMPxaXiSl9HqXqhdDq8bAVLKru2unBN83PRe UyOUlDsYnDmajU8wW4W31hACqoY7aTew0iIrjpgaHtXANS6KlbQTgZpJnIm6aW1KYg+S +RsWKdKgEhsFdxXZN+jzwoIbCFIahSnblVmfBsjlJq2ATua4hZCE+f7+j6Kwbiq2FHGQ YPE7LbHZTIf7ob/LTSeceUX8z2128LyTBleXujZoRVTNGGs/L15hIgcOIaxksEZoBxPE v7gUOfYh/dmIO5UY5CiQ26/fg6vQ5r89psWQl+AG/cbIqvKqsIbsK2eb2Rn9aLOkgQRX /uhA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1689054866; x=1691646866; h=cc:to:content-transfer-encoding:mime-version:message-id:date :subject:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=idZkGEwcPYLun83FvCWg1+YIM8kK5l5ERo4f+wG74Mg=; b=UYhCLXJF/BJVmmEIbc4T+3lWJnborvVEABzua4ynsT0/CP6OL24jtavZbRERrO/xW3 0mvXa9sxSIGTldVWG8QOYARH6vN8ZZ+XVhj+b3JnHfX3Ym185d74BYK/xXpFgvTAKBh3 ARca6DKuFiUr4w8uIbMP4Ngpx6uJJMWdRQr4XutzZJLj8cUho2rXxD3qtJE7NXml8+or ed9pU1CNbWCfhWZddQJttFsmzO0wkgeTlqFzBLF4ncNCss5KoA50h+ocrvHgH8ZH15zt y/cVE5yFmYRPQUtgGxbad5S6AwVqGPNNJLL84b1/79FuRQnPjqQVI3ubcvoCfUO5D/Wj WcxQ== X-Gm-Message-State: ABy/qLZ54QA+a+l6zlS9fLNxwFwl2HbORCt3c4SBM7hJ2R5ZLSdtYBqr imQFY3ACMWyWp40fppRTdFidDvne+Yo= X-Received: by 2002:a17:902:d342:b0:1b5:32f2:5af with SMTP id l2-20020a170902d34200b001b532f205afmr13144327plk.59.1689054866176; Mon, 10 Jul 2023 22:54:26 -0700 (PDT) Received: from j293.lan ([2400:4051:ea3:5910:5676:1078:8b85:c18f]) by smtp.gmail.com with ESMTPSA id bd5-20020a170902830500b001b8761c739csm878053plb.271.2023.07.10.22.54.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 10 Jul 2023 22:54:25 -0700 (PDT) From: Kazuki Hashimoto <kazukih0205@gmail.com> Subject: [PATCH 0/2] s2idle fixes for systems without cpuidle Date: Tue, 11 Jul 2023 14:54:20 +0900 Message-Id: <20230711-cpuidle-v1-0-f391224b3140@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-B4-Tracking: v=1; b=H4sIAIzurGQC/6tWKk4tykwtVrJSqFYqSi3LLM7MzwNyDHUUlJIzE vPSU3UzU4B8JSMDI2MDcwNL3eSC0syUnFRdi2RTEzNLcwuLNHNzJaDqgqLUtMwKsEnRsbW1ABb YuWBZAAAA To: "Rafael J. Wysocki" <rafael@kernel.org>, Daniel Lezcano <daniel.lezcano@linaro.org>, Ingo Molnar <mingo@redhat.com>, Peter Zijlstra <peterz@infradead.org>, Len Brown <len.brown@intel.com>, Pavel Machek <pavel@ucw.cz> Cc: linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org, "Rafael J. Wysocki" <rafael.j.wysocki@intel.com>, Hector Martin <marcan@marcan.st>, Kazuki Hashimoto <kazukih0205@gmail.com> X-Mailer: b4 0.12.3 X-Developer-Signature: v=1; a=ed25519-sha256; t=1689054863; l=762; i=kazukih0205@gmail.com; s=20230709; h=from:subject:message-id; bh=j5NYA/cWUwU8zPrqAOAmXhuilLtRqKNLjK9L23BUYFw=; b=jWlB3vckae5Vtnn/+aYOfDXmupSLN1kDF7eO4gCcG/u5EKWpbYNOqTimDReNI0fbI3emDFrn5 LBnJETOVREfAQ7lz1NykrjDT0z21TxnjrdRhTZ8YG22ycLuxJ+3tM/X X-Developer-Key: i=kazukih0205@gmail.com; a=ed25519; pk=r8m5wVK5lljix+hYnqXRT/GsxNkTADqXGmhdl7kykYY= X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_ENVFROM_END_DIGIT, FREEMAIL_FROM,RCVD_IN_DNSWL_BLOCKED,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: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1771102927597666884 X-GMAIL-MSGID: 1771102927597666884 |
Series |
s2idle fixes for systems without cpuidle
|
|
Message
Kazuki Hashimoto
July 11, 2023, 5:54 a.m. UTC
Changes in V2: Redo implementation following input from Hector Martin Changes in V3: Rewrite commit message following input from Rafael J. Wysocki --- Kazuki Hashimoto (2): cpuidle: Don't pass any values to cpuidle_not_available PM: s2idle: Fully prevent the system from entering s2idle when cpuidle isn't supported drivers/cpuidle/cpuidle.c | 6 ++++-- include/linux/cpuidle.h | 6 ++---- kernel/power/main.c | 12 +++++++++--- kernel/power/suspend.c | 5 +++++ kernel/sched/idle.c | 2 +- 5 files changed, 21 insertions(+), 10 deletions(-) --- base-commit: 8fc3b8f082cc2f5faa6eae315b938bc5e79c332e change-id: 20230709-cpuidle-8c5469788f77 Best regards,