Message ID | 1405265431-4561-5-git-send-email-linux@roeck-us.net (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org> X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 6FE83C0514 for <patchwork-linux-arm@patchwork.kernel.org>; Sun, 13 Jul 2014 15:33:33 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 99DE020179 for <patchwork-linux-arm@patchwork.kernel.org>; Sun, 13 Jul 2014 15:33:32 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id DBCA82012F for <patchwork-linux-arm@patchwork.kernel.org>; Sun, 13 Jul 2014 15:33:31 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1X6LkO-0002Ww-To; Sun, 13 Jul 2014 15:31:28 +0000 Received: from mail-pd0-x22f.google.com ([2607:f8b0:400e:c02::22f]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1X6Lk8-0002Kx-Oi for linux-arm-kernel@lists.infradead.org; Sun, 13 Jul 2014 15:31:13 +0000 Received: by mail-pd0-f175.google.com with SMTP id v10so3858264pde.6 for <linux-arm-kernel@lists.infradead.org>; Sun, 13 Jul 2014 08:30:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references; bh=chq9k0GbOyhtQUAkr0R5C/Sprkd+FzOdkzOnphVdzAk=; b=kh/IRiHMVS7aA5EDkhb4bDggGZ5N9Y/x5+9qDK7Mx+ZU/QmuhNChMgrmKiFvVCfa3U 6CLS5uW9JVSW/iLkbQf5piO7hD8KKp4ULcPOxGCJto3wWU+cczBwCEAOVWCvDxCcfFTS rnqgo37OBe3w8NTd9E1xVVxfkkDZzK6eJh9XsEb0QdSXI2snbbFN8IgVNFw/sAvMLjIl wGygoLv6MbV1iWPqF/cMsPh2K8AcljEm7QL5D/tuzoGELjR/yZhOYcLS08ecFYWyMh7K 9HxfsI1Ki4YdXOGS17ymLD4vJ61MMrBp0AnQvFiYupJQe73hF1uH1qUoOTdNnPEoesGD T4Qg== X-Received: by 10.70.62.97 with SMTP id x1mr7758044pdr.86.1405265451985; Sun, 13 Jul 2014 08:30:51 -0700 (PDT) Received: from localhost (108-223-40-66.lightspeed.sntcca.sbcglobal.net. [108.223.40.66]) by mx.google.com with ESMTPSA id s2sm10877048pda.35.2014.07.13.08.30.50 for <multiple recipients> (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Sun, 13 Jul 2014 08:30:51 -0700 (PDT) From: Guenter Roeck <linux@roeck-us.net> To: linux-watchdog@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: [PATCH v4 4/7] power/restart: Call machine_restart instead of arm_pm_restart Date: Sun, 13 Jul 2014 08:30:28 -0700 Message-Id: <1405265431-4561-5-git-send-email-linux@roeck-us.net> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1405265431-4561-1-git-send-email-linux@roeck-us.net> References: <1405265431-4561-1-git-send-email-linux@roeck-us.net> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20140713_083112_853116_2D3A6287 X-CRM114-Status: GOOD ( 11.55 ) X-Spam-Score: -0.4 (/) Cc: Ingo Molnar <mingo@kernel.org>, Russell King <linux@arm.linux.org.uk>, Heiko Stuebner <heiko@sntech.de>, Arnd Bergmann <arnd@arndb.de>, linux-doc@vger.kernel.org, Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>, Catalin Marinas <catalin.marinas@arm.com>, Tomasz Figa <t.figa@samsung.com>, Randy Dunlap <rdunlap@infradead.org>, Will Deacon <will.deacon@arm.com>, linux-kernel@vger.kernel.org, Steven Rostedt <rostedt@goodmis.org>, Jonas Jensen <jonas.jensen@gmail.com>, Wim Van Sebroeck <wim@iguana.be>, Maxime Ripard <maxime.ripard@free-electrons.com>, David Woodhouse <dwmw2@infradead.org>, Andrew Morton <akpm@linux-foundation.org>, Guenter Roeck <linux@roeck-us.net> X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: <linux-arm-kernel.lists.infradead.org> List-Unsubscribe: <http://lists.infradead.org/mailman/options/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=unsubscribe> List-Archive: <http://lists.infradead.org/pipermail/linux-arm-kernel/> List-Post: <mailto:linux-arm-kernel@lists.infradead.org> List-Help: <mailto:linux-arm-kernel-request@lists.infradead.org?subject=help> List-Subscribe: <http://lists.infradead.org/mailman/listinfo/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=subscribe> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" <linux-arm-kernel-bounces@lists.infradead.org> Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-1.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, RP_MATCHES_RCVD, T_DKIM_INVALID, UNPARSEABLE_RELAY autolearn=no version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP |
diff --git a/drivers/power/reset/restart-poweroff.c b/drivers/power/reset/restart-poweroff.c index 5758033..47f10eb 100644 --- a/drivers/power/reset/restart-poweroff.c +++ b/drivers/power/reset/restart-poweroff.c @@ -20,7 +20,8 @@ static void restart_poweroff_do_poweroff(void) { - arm_pm_restart(REBOOT_HARD, NULL); + reboot_mode = REBOOT_HARD; + machine_restart(NULL); } static int restart_poweroff_probe(struct platform_device *pdev)
machine_restart is supported on non-ARM platforms, and and ultimately calls arm_pm_restart, so dont call arm_pm_restart directly but use the more generic function. Cc: Russell King <linux@arm.linux.org.uk> Signed-off-by: Guenter Roeck <linux@roeck-us.net> --- v4: No change. v3: No change. v2: Added patch. drivers/power/reset/restart-poweroff.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)