From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754526AbbCQVo2 (ORCPT ); Tue, 17 Mar 2015 17:44:28 -0400 Received: from mail-gw2-out.broadcom.com ([216.31.210.63]:10338 "EHLO mail-gw2-out.broadcom.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753125AbbCQVoY (ORCPT ); Tue, 17 Mar 2015 17:44:24 -0400 X-IronPort-AV: E=Sophos;i="5.11,418,1422950400"; d="scan'208";a="59685607" Message-ID: <5508A047.7060308@broadcom.com> Date: Tue, 17 Mar 2015 14:44:39 -0700 From: Arun Ramamurthy User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.5.0 MIME-Version: 1.0 To: Linux Kernel Mailing List , CC: Dmitry Torokhov , Anatol Pomazau , "bcm-kernel-feedback-list@broadcom.com" , Ray Jui , "Scott Branden" , Jonathan Richardson , Arnd Bergmann , Russell King , Olof Johansson Subject: Setting reboot type at run time for ARM Content-Type: text/plain; charset="utf-8"; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hello I would like to specify a reset type just before issuing the reboot command in the kernel. I know the kernel command line parameter can be set as "reboot=w" to indicate warm reset but I want to be able to decide this at run time before issuing a reboot command. What would be the best way to implement this? Modify the reboot command to accept a parameter or is there a standard hook I can use? Arun Ramamurthy