Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp5448527iob; Mon, 9 May 2022 17:07:37 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzKV9nPyEIc/MOexbOzAKQT48GhO6Mp6H/uJVP4IVlv2g+fZO0iZ0Xbli0OAU6srZ/UTl1B X-Received: by 2002:a05:6870:2115:b0:e7:80fb:79c5 with SMTP id f21-20020a056870211500b000e780fb79c5mr8317375oae.134.1652141256781; Mon, 09 May 2022 17:07:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652141256; cv=none; d=google.com; s=arc-20160816; b=w+eTidpftUmIup9BZm7i4eDr3cf0dK7GoCfWh9YHachQJAW3FLK0Oz/Tn+rQj0ZXvW cuRwU+yuE+/2qgH4WRrCptnZUZ+LMj6eEkNcfjLsZmJLwB2+vd7su+KpemrNITjNN3NV xKu15SVcSa9n5w8Yln91YBxZFSG6zZNkskRZFhYZDW0+WoAoiQY1JAeIkpkqoa5NTLLo n2VEB3wIBPDpghnCHOwk5bWAN8VeiFlzE5GtSw6MJxiZahZuMLIHdLCUPQrNKufGdTu1 77t7CUBcAlOgDhAtkud7BPuNILh9x9bcmK5ixyMgxv/s4/4quI4UnN6ajNpkJfWl6n4X h4JA== 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=a3yK2T+sGCCnAscNkKI7YaPApC+XE6EEKjXPNWvAX6Y=; b=I3sxpK159TD7cwD5yF6PEhTLAJfs6crX5gMhSUJzGYbwaxIEESsdypzos+q81Wlzmt LQAbwaAtqn/aVqgeCh03loxeVNwafukaZ/3PK7dslVJBQQ+5wpOKtc0/b8nZPdo91i03 CDI5rBhbTATBMBpEVsG1gjrOYfBgK1TRpzb35tMvRRbNoSEH6bqtiKnshJ2Mb1p3xv87 QeBXSm8ddzciWUZjghqeW3Nt4n8UOoBTbAtn5NGYx22LJcDMsvSmFOkxarmtCwTYNyeQ IMBGaw6bCP4gs0CvE30R5FBX+34B/E716PItRbatlh1XDF55Hm+MWaRhRPotBMEz1iLt Zr+A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=isHqVuBE; 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 j205-20020aca3cd6000000b002ef0c34766fsi11371905oia.239.2022.05.09.17.07.21; Mon, 09 May 2022 17:07:36 -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=isHqVuBE; 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 S233297AbiEIXkL (ORCPT + 99 others); Mon, 9 May 2022 19:40:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44414 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233153AbiEIXiS (ORCPT ); Mon, 9 May 2022 19:38:18 -0400 Received: from bhuna.collabora.co.uk (bhuna.collabora.co.uk [46.235.227.227]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 23E97254722; Mon, 9 May 2022 16:34:22 -0700 (PDT) Received: from [127.0.0.1] (localhost [127.0.0.1]) (Authenticated sender: dmitry.osipenko) with ESMTPSA id C06B91F4421D DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1652139261; bh=8v4IT57+mYAUaWHgG2SWPXczQ+re0x8/DMpbbFlIS8M=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=isHqVuBEBya3ws/kEg+oG4SY7cz7IlcFyGnrUpkaZVcGOjpZxRhpzSw44LoLfDOJa WG+MtxGMzWjlq+wBMlpt+KNs2yTOPSWGcQVJuCZGKQnBwwK5ItMuAZjFF+prk5PVOf dbW8U+TBV0uJ/lW7DoEmYBN+dWUUR3JmXsjCQnAoqtd+e/OC4UCPn1dbpDb9NKnPOR gwWBLXpkonDuICKTRolr5FU0p5ifDNqvOUcqTMXX1M5CkKwte65fYr/AmYqOdZnoWi vrDx1AIDfO9+OLCEpYijEbVExDT6hmoW8p3VzsnPd6npIRWlURULaN5k1zAUbNcY2c KQvzdoNzeUO7A== 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 20/27] mips: Use do_kernel_power_off() Date: Tue, 10 May 2022 02:32:28 +0300 Message-Id: <20220509233235.995021-21-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. Acked-by: Thomas Bogendoerfer Reviewed-by: Michał Mirosław Signed-off-by: Dmitry Osipenko --- arch/mips/kernel/reset.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/arch/mips/kernel/reset.c b/arch/mips/kernel/reset.c index 6288780b779e..e7ce07b3e79b 100644 --- a/arch/mips/kernel/reset.c +++ b/arch/mips/kernel/reset.c @@ -114,8 +114,7 @@ void machine_halt(void) void machine_power_off(void) { - if (pm_power_off) - pm_power_off(); + do_kernel_power_off(); #ifdef CONFIG_SMP preempt_disable(); -- 2.35.1