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 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 1A9CFC433EF for ; Thu, 28 Oct 2021 12:24:06 +0000 (UTC) Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) (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 BF218610C8 for ; Thu, 28 Oct 2021 12:24:05 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org BF218610C8 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=lists.xenproject.org Received: from list by lists.xenproject.org with outflank-mailman.217995.378259 (Exim 4.92) (envelope-from ) id 1mg4Rc-0006rq-SX; Thu, 28 Oct 2021 12:23:44 +0000 X-Outflank-Mailman: Message body and most headers restored to incoming version Received: by outflank-mailman (output) from mailman id 217995.378259; Thu, 28 Oct 2021 12:23:44 +0000 Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1mg4Rc-0006rj-Oj; Thu, 28 Oct 2021 12:23:44 +0000 Received: by outflank-mailman (input) for mailman id 217995; Thu, 28 Oct 2021 12:22:01 +0000 Received: from us1-rack-iad1.inumbo.com ([172.99.69.81]) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1mg4Pw-0006oU-Vf for xen-devel@lists.xenproject.org; Thu, 28 Oct 2021 12:22:01 +0000 Received: from mail-pj1-x1034.google.com (unknown [2607:f8b0:4864:20::1034]) by us1-rack-iad1.inumbo.com (Halon) with ESMTPS id 620ad1b5-302e-48e5-bad1-24cde6d35744; Thu, 28 Oct 2021 12:22:00 +0000 (UTC) Received: by mail-pj1-x1034.google.com with SMTP id k2-20020a17090ac50200b001a218b956aaso4545502pjt.2 for ; Thu, 28 Oct 2021 05:22:00 -0700 (PDT) X-BeenThere: xen-devel@lists.xenproject.org List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Errors-To: xen-devel-bounces@lists.xenproject.org Precedence: list Sender: "Xen-devel" X-Inumbo-ID: 620ad1b5-302e-48e5-bad1-24cde6d35744 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=sEQTGe1SdVzMEvdAS+JHzGs+s//rKDLb3zrHBeoZhQ4=; b=iTF+KxXEUPxEL0X/A/h2gzR6rfhKbueZtpV43T9ecbwhzi0t+l3q/o5Ua3AWvU+Enc ByGkTqENMRntgh3iznFMDxu2CMYcinTkd+zVseDqmIBVqNiOOl7jtDTN28tXnXeh/eHS f+SIvvi2YC7tI22dM3EDibcHeQLa3iIqsv5H8CiejoyVxtmYKOA3VOetskmtU4Lx+Pqb LjWvbMeTK5pVAec3h6exgixTZBuA0b6b4pLrHZnH5EOvWXMCcJgTfSDot7PpiFpwOrmA UDe0Zf8yyrgR8VQIYltC0W9ualVYljq6alX4ZkNWzu2NeGmBPW3wY5ZPA2p2XVSWoIe3 jylQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=sEQTGe1SdVzMEvdAS+JHzGs+s//rKDLb3zrHBeoZhQ4=; b=EKIuycGZTZAGfIXLPPhyxNzb4IpONDf+HWiQU1zbMP8HlvVDFjK+weUbYkR3XTO4wD YjeHs5UyroUXGVC4VR28ipJ5/0pw9PFgSnrYSnw1Cw6r5BYIa8O5LEPKJXy+Fa7c0BuM rKKn1NFSE+snfT1XhRMqKLG4RL7IUqSkt3Y/BeZRW60tKod9cmuT/PfhM5C19GR90GZN wYbRXWcp9i1XWTh2BtThyZbxDlcRU2J5pMslrDUqlvABZ72JlvsVF8ySboQ4k3OZ3efm fGoOgp1OmwIvk5QBU/0XhVSl6qvXv4UQOSHZxB81fwnkvKLHMRrldaGcpULF99iAGct9 BP9w== X-Gm-Message-State: AOAM530xsLbs/W84qjz8B7boiouC4Tong3vlDu59FCZkELvKozywnLFO PsdSjoozIFtvsKul9TLXtlQwGIoJfQTNvWVlAkw= X-Google-Smtp-Source: ABdhPJwgRG6Z5IlQAMmxkEb7xwk/3DRskWOoc9lq5s+Jze0PB67uqVa13ZU9GrnI44E+cb/61DiEpYjC8sFDBN8RSYA= X-Received: by 2002:a17:902:b716:b0:13f:b2d1:f316 with SMTP id d22-20020a170902b71600b0013fb2d1f316mr3644234pls.24.1635423719258; Thu, 28 Oct 2021 05:21:59 -0700 (PDT) MIME-Version: 1.0 References: <20211027211715.12671-1-digetx@gmail.com> <20211027211715.12671-16-digetx@gmail.com> In-Reply-To: <20211027211715.12671-16-digetx@gmail.com> From: Greentime Hu Date: Thu, 28 Oct 2021 20:20:00 +0800 Message-ID: Subject: Re: [PATCH v2 15/45] nds32: Use do_kernel_power_off() To: Dmitry Osipenko Cc: Thierry Reding , Jonathan Hunter , Lee Jones , "Rafael J . Wysocki" , Mark Brown , Andrew Morton , Guenter Roeck , Russell King , Daniel Lezcano , Andy Shevchenko , Ulf Hansson , Catalin Marinas , Will Deacon , Guo Ren , Geert Uytterhoeven , Greg Ungerer , Joshua Thompson , Thomas Bogendoerfer , Nick Hu , Vincent Chen , "James E.J. Bottomley" , Helge Deller , Michael Ellerman , Benjamin Herrenschmidt , Paul Mackerras , Paul Walmsley , Palmer Dabbelt , Albert Ou , Yoshinori Sato , Rich Felker , Thomas Gleixner , Ingo Molnar , Borislav Petkov , Dave Hansen , x86@kernel.org, "H. Peter Anvin" , Boris Ostrovsky , Juergen Gross , Stefano Stabellini , Len Brown , Santosh Shilimkar , Krzysztof Kozlowski , Linus Walleij , Chen-Yu Tsai , =?UTF-8?Q?Jonathan_Neusch=C3=A4fer?= , Tony Lindgren , Liam Girdwood , Philipp Zabel , Vladimir Zapolskiy , Avi Fishman , Tomer Maimon , Tali Perry , Patrick Venture , Nancy Yuen , Benjamin Fair , Pavel Machek , linux-arm-kernel@lists.infradead.org, Linux Kernel Mailing List , linux-csky@vger.kernel.org, linux-ia64@vger.kernel.org, linux-m68k@lists.linux-m68k.org, linux-mips@vger.kernel.org, linux-parisc@vger.kernel.org, linuxppc-dev , linux-riscv@lists.infradead.org, linux-sh@vger.kernel.org, xen-devel@lists.xenproject.org, linux-acpi@vger.kernel.org, linux-omap@vger.kernel.org, openbmc@lists.ozlabs.org, linux-tegra@vger.kernel.org, linux-pm@vger.kernel.org, Alan Kao , =?UTF-8?B?Sy5DLiBLdWVuLUNoZXJuIExpbijmnpflnaTmiJAp?= Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Dmitry Osipenko =E6=96=BC 2021=E5=B9=B410=E6=9C=8828=E6= =97=A5 =E9=80=B1=E5=9B=9B =E4=B8=8A=E5=8D=885:18=E5=AF=AB=E9=81=93=EF=BC=9A > > Kernel now supports chained power-off handlers. Use do_kernel_power_off() > that invokes chained power-off handlers. It also invokes legacy > pm_power_off() for now, which will be removed once all drivers will > be converted to the new power-off API. > > Signed-off-by: Dmitry Osipenko > --- > arch/nds32/kernel/process.c | 3 +-- > 1 file changed, 1 insertion(+), 2 deletions(-) > > diff --git a/arch/nds32/kernel/process.c b/arch/nds32/kernel/process.c > index 49fab9e39cbf..0936dcd7db1b 100644 > --- a/arch/nds32/kernel/process.c > +++ b/arch/nds32/kernel/process.c > @@ -54,8 +54,7 @@ EXPORT_SYMBOL(machine_halt); > > void machine_power_off(void) > { > - if (pm_power_off) > - pm_power_off(); > + do_kernel_power_off(); > } > > EXPORT_SYMBOL(machine_power_off); > -- > 2.33.1 > Loop in Alan and KC