From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.0 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,UNPARSEABLE_RELAY,USER_AGENT_GIT autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 18948C433E6 for ; Tue, 1 Sep 2020 07:08:22 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id D354A204EC for ; Tue, 1 Sep 2020 07:08:21 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="YWwmTnUx"; dkim=fail reason="signature verification failed" (1024-bit key) header.d=mediatek.com header.i=@mediatek.com header.b="FlC9QQ/v" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org D354A204EC Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=mediatek.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:Message-ID:Date:Subject:To:From: Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender :Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Owner; bh=kg9P5rs2hAL4RTvsPNbDQtgFfqA2oZDD9Rk0207EDB0=; b=YWwmTnUxlGGgKdJ5tw3kX/mt7C vvoAhCHFDwg0nJBFIuZfi46Zpr4w/mHt5IRK7pyORbGxt1vICofryGpxv/HoWEZc7BKxAqJ2726JC FQvLui7n+DSNKvCbncYEqzl18lUCe/0PXTkMmcx4YxSFze87fh3wnmBh2b7t1mmU6Lcxk4pRXzvEi dRiTgRzpk/xwB4yg/PsH0pel5WbVYOObmazsdPipiJDLrFCykFxKVXAkL5HaUR50ZPInv/fAVI6Ip wBQe1cAoWL7eBGCKs5sRn2st1yW5Ougo4iUV2vUzTUh0XRiX68w4cX9SneD+s9631tgH9dOYxEwSx X/ARub/g==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kD0Nl-00080d-GD; Tue, 01 Sep 2020 07:07:05 +0000 Received: from mailgw02.mediatek.com ([216.200.240.185]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kD0Ng-0007yu-FU; Tue, 01 Sep 2020 07:07:01 +0000 X-UUID: 7ad9638f836b46db95b8bf63682cfa52-20200831 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=mediatek.com; s=dk; h=Content-Transfer-Encoding:Content-Type:MIME-Version:Message-ID:Date:Subject:CC:To:From; bh=VRgBNvTtVHr8xsM0oGrT8CR3Lw13vv4ccslbq+kluY8=; b=FlC9QQ/v6GGXxRgXF1TyOypvcoXneIhLBGmJYkRdfts+HzGt0/Mhogf6R4gR4SHi2w95B5kE/X+xhYNtBuNjdKJCDWVnRQ6ySYO9/l7a3y9jxhAY2F+5fc9camk0g230SPDaA5LQyd8/bheqc5vxs+FGtOPeSwLnhFe+2pN6bgI=; X-UUID: 7ad9638f836b46db95b8bf63682cfa52-20200831 Received: from mtkcas67.mediatek.inc [(172.29.193.45)] by mailgw02.mediatek.com (envelope-from ) (musrelay.mediatek.com ESMTP with TLS) with ESMTP id 331623298; Mon, 31 Aug 2020 23:06:53 -0800 Received: from MTKMBS01N1.mediatek.inc (172.21.101.68) by MTKMBS62N2.mediatek.inc (172.29.193.42) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Tue, 1 Sep 2020 00:05:56 -0700 Received: from MTKCAS06.mediatek.inc (172.21.101.30) by mtkmbs01n1.mediatek.inc (172.21.101.68) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Tue, 1 Sep 2020 15:05:47 +0800 Received: from mtkswgap22.mediatek.inc (172.21.77.33) by MTKCAS06.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Tue, 1 Sep 2020 15:05:47 +0800 From: Claude Yen To: "Rafael J. Wysocki" , Daniel Lezcano , Frederic Weisbecker , "Thomas Gleixner" , Ingo Molnar , "Matthias Brugger" , Bjorn Andersson , Greg Kroah-Hartman , Stephen Boyd , "Douglas Anderson" Subject: [PATCH] PM: s2idle: Introduce syscore callbacks in s2idle flow Date: Tue, 1 Sep 2020 15:04:18 +0800 Message-ID: <1598943859-21857-1-git-send-email-claude.yen@mediatek.com> X-Mailer: git-send-email 1.7.9.5 MIME-Version: 1.0 X-MTK: N X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200901_030700_638257_7F81D5CE X-CRM114-Status: GOOD ( 11.54 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: wsd_upstream@mediatek.com, linux-mediatek@lists.infradead.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-pm@vger.kernel.org Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org This series based on 5.9-rc1 This patch makes s2idle call existing syscore callbacks. Currently, when s2idle is selected as system suspend method, callbacks hooked by register_syscore_ops() will not be triggered. This may induce unexpected results. For example, sched_clock_suspend() was added to s2idle flow in commit 3f2552f7e9c5 ("timers/sched_clock: Prevent generic sched_clock wrap caused by tick_freeze()") to fix clock wrap problem. However, sched_clock_suspend() is originally registered in syscore callback. With this patch, if another syscore callback is needed in s2idle, additional migration effort could be saved. *** BLURB HERE *** claude.yen (1): PM: s2idle: Introduce syscore callbacks in s2idle flow drivers/cpuidle/cpuidle.c | 36 ++++++++++++++++++++++++++++++++---- kernel/cpu_pm.c | 17 +++++++++++++++++ kernel/time/tick-common.c | 17 ++--------------- 3 files changed, 51 insertions(+), 19 deletions(-) -- 1.7.9.5 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel