Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp5562237iob; Mon, 9 May 2022 20:48:04 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwXD/ZxURzS8eVZAfukZPTBwA4LfbHyxf0Cd5ouNxs2Lhhd9eeiv8lJ2V+YXtXMenFuqsRI X-Received: by 2002:a17:907:1c8a:b0:6e9:2a0d:d7b7 with SMTP id nb10-20020a1709071c8a00b006e92a0dd7b7mr17076052ejc.572.1652154483827; Mon, 09 May 2022 20:48:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652154483; cv=none; d=google.com; s=arc-20160816; b=yKQRLeVpxSrRInnzOQZfGywbNdxp9Ue9zAK4Bg9bWVc3qW/NXq4O2AdesTZbiwQMsk Tm3crXlVF+dEggvzi23yfyokJq/DNVXIDFABSE6OsT+GoUYXTpqVDuzGWoFPHNHybxUx i3yDJNLsxvjUyV19gl3HAzw6EdyF13yXbg/ZRGP3g4DgRVzb+dBr9BFtFF7OEbCNEIig JuPSGo8+UUnb9/Va2Ddrrq8Ev/q3u5JjENtB//ltZpYPwqfJCJBsrR2l5WbXPpQE/ANQ +3J9LwD8KYXdrIjucjDCkQdmTf/Qxy7J9eTuJQc4mnz+8ZsWkEa5+m8tIwh17+qlmSmt nNyQ== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=zgLyu8kuL+NojmlHjIs8c4Ma/+aeYN4HmnV35tBMNjQ=; b=kL1Sjws2y6sQsXL/Wejgv9x7/24Ea5vinW+8t0w8cHzUEUTCljHtOMEF5xLbZGnYnL zF8Ky7DvB0NFqC7hZu+LMbEe+r9IVUjuXquTsJ332mCVX1uGj6KAOmDqGqYzKYAfAqmM YjIOwWuiNm9oCrD9UKtfKuc0e1BdlBLPq8uiIxsD7r+T6l04Ig/hl3DbY0u/zl3P9/5f oIQJ0zwQTYH9aHIJ71q+JK25NOv3PxS6HpX4LPYdWXageUIx1BEhfCYEx+Zor7FKgya9 hDh79LAkQaOCZh6KL68m760lBvF6EoRWjGKDsUusmxjOE+jgoRRKApAngM+2tjM2olV4 jmfg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b="gt4u81G/"; 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=NONE dis=NONE) header.from=collabora.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id i5-20020a1709061cc500b006e8547516d5si14399155ejh.736.2022.05.09.20.47.40; Mon, 09 May 2022 20:48:03 -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=@collabora.com header.s=mail header.b="gt4u81G/"; 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=NONE dis=NONE) header.from=collabora.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232329AbiEIXkC (ORCPT + 99 others); Mon, 9 May 2022 19:40:02 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45840 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231157AbiEIXiP (ORCPT ); Mon, 9 May 2022 19:38:15 -0400 Received: from bhuna.collabora.co.uk (bhuna.collabora.co.uk [46.235.227.227]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F11102532F2; Mon, 9 May 2022 16:34:18 -0700 (PDT) Received: from [127.0.0.1] (localhost [127.0.0.1]) (Authenticated sender: dmitry.osipenko) with ESMTPSA id CD6681F44218 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1652139257; bh=vRb4DtICDxJaROyEtMW3UwUdcH4tg+twL9gOXYS6wp8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=gt4u81G/LFxhoOEWGR2YMg+vhkXhorm0jgFd64YTZTuXmM+7vG7f3q4ZdaFuqYRJS tGUmDGjP5E8g3OsXjzvy7rc8/B4hk2wxUh254z6arCFJCq4Zn4nYnOEuMGAFxhhkwc FeFBnrORsJSOriC3iEOi3iWo3k8QOf23bj2Nt6IUYGS+Vok5FiMxP+66U31QsS8qsL mVpptTyKx3JXLvhtJiVMPU7cAlmSudorXN3MNL4LPBNQ56Fm1aY+u8x67N3P+KtJ22 6BIPyxJsFkQfhUsOqyWUF/BWHTPKTs8seyIqQEcyu9CdhBsdEQuumAGveCtmifiXNx wIYCEzEJi6pLw== From: Dmitry Osipenko To: Thierry Reding , Jonathan Hunter , Russell King , Catalin Marinas , Will Deacon , Guo Ren , Geert Uytterhoeven , Greg Ungerer , Joshua Thompson , Thomas Bogendoerfer , Sebastian Reichel , Linus Walleij , Philipp Zabel , Greentime 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 , "Rafael J. Wysocki" , Len Brown , Santosh Shilimkar , Krzysztof Kozlowski , Liam Girdwood , Mark Brown , Pavel Machek , Lee Jones , Andrew Morton , Guenter Roeck , Daniel Lezcano , Andy Shevchenko , Ulf Hansson , =?UTF-8?q?Micha=C5=82=20Miros=C5=82aw?= Cc: linux-kernel@vger.kernel.org, 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, linux-riscv@lists.infradead.org, linux-sh@vger.kernel.org, xen-devel@lists.xenproject.org, linux-acpi@vger.kernel.org, linux-pm@vger.kernel.org, linux-tegra@vger.kernel.org Subject: [PATCH v8 19/27] ia64: Use do_kernel_power_off() Date: Tue, 10 May 2022 02:32:27 +0300 Message-Id: <20220509233235.995021-20-dmitry.osipenko@collabora.com> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220509233235.995021-1-dmitry.osipenko@collabora.com> References: <20220509233235.995021-1-dmitry.osipenko@collabora.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_PASS,SPF_PASS, T_SCC_BODY_TEXT_LINE,UNPARSEABLE_RELAY autolearn=unavailable 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 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 sys-off API. Reviewed-by: Michał Mirosław Signed-off-by: Dmitry Osipenko --- arch/ia64/kernel/process.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/ia64/kernel/process.c b/arch/ia64/kernel/process.c index 167b1765bea1..416305e550e2 100644 --- a/arch/ia64/kernel/process.c +++ b/arch/ia64/kernel/process.c @@ -19,6 +19,7 @@ #include #include #include +#include #include #include #include @@ -602,8 +603,7 @@ machine_halt (void) void machine_power_off (void) { - if (pm_power_off) - pm_power_off(); + do_kernel_power_off(); machine_halt(); } -- 2.35.1