linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
From: linux@arm.linux.org.uk (Russell King - ARM Linux)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH -v10 09/11] arm, prepare reboot_mode for moving to generic kernel code.
Date: Sat, 11 May 2013 14:04:57 +0100	[thread overview]
Message-ID: <20130511130457.GD18614@n2100.arm.linux.org.uk> (raw)
In-Reply-To: <1368273447-11958-10-git-send-email-holt@sgi.com>

On Sat, May 11, 2013 at 06:57:25AM -0500, Robin Holt wrote:
> This patch prepares for the moving the parsing of reboot= to the generic
> kernel code by making reboot_mode into a more generic form.
> 
> Signed-off-by: Robin Holt <holt@sgi.com>
> To: Andrew Morton <akpm@linux-foundation.org>
> To: Russell King <linux@arm.linux.org.uk>
> Cc: Russ Anderson <rja@sgi.com>
> Cc: Robin Holt <holt@sgi.com>
> Cc: H. Peter Anvin <hpa@zytor.com>
> Cc: Guan Xuetao <gxt@mprc.pku.edu.cn>
> Cc: Linux Kernel Mailing List <linux-kernel@vger.kernel.org>
> Cc: the arch/x86 maintainers <x86@kernel.org>
> Cc: Arm Mailing List <linux-arm-kernel@lists.infradead.org>

Almost-but-not-quite-Acked-by: Russell King <rmk+kernel@arm.linux.org.uk> :)

> diff --git a/arch/arm/kernel/process.c b/arch/arm/kernel/process.c
> index f219703..92b47df 100644
> --- a/arch/arm/kernel/process.c
> +++ b/arch/arm/kernel/process.c
> @@ -174,14 +174,14 @@ void arch_cpu_idle(void)
>  		default_idle();
>  }
>  
> -static char reboot_mode = 'h';
> +enum reboot_mode reboot_mode = REBOOT_HARD;
>  
> -int __init reboot_setup(char *str)
> +static int __init reboot_setup(char *str)
>  {
> -	reboot_mode = str[0];
> +	if ('s' == str[0])
> +		reboot_mode = REBOOT_SOFT;

Remember we talked about the 'gpio' mode as well, so you also need here
+	if ('g' == str[0])
		reboot_mode = REBOOT_GPIO;

  reply	other threads:[~2013-05-11 13:04 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-05-11 11:57 [PATCH -v10 00/11] Shutdown from reboot_cpuid without stopping other cpus Robin Holt
2013-05-11 11:57 ` [PATCH -v10 01/11] CPU hotplug: Provide a generic helper to disable/enable CPU hotplug Robin Holt
2013-05-11 11:57 ` [PATCH -v10 02/11] Migrate shutdown/reboot to boot cpu Robin Holt
2013-05-11 11:57 ` [PATCH -v10 03/11] Remove -stable friendly PF_THREAD_BOUND define Robin Holt
2013-05-11 11:57 ` [PATCH -v10 04/11] Move shutdown/reboot related functions to kernel/reboot.c Robin Holt
2013-05-11 11:57 ` [PATCH -v10 05/11] checkpatch.pl the new kernel/reboot.c file Robin Holt
2013-05-11 11:57 ` [PATCH -v10 06/11] x86, prepare reboot_mode for moving to generic kernel code Robin Holt
2013-05-11 11:57 ` [PATCH -v10 07/11] unicore32, " Robin Holt
2013-05-11 11:57 ` [PATCH -v10 08/11] arm, Remove unused restart_mode fields from some arm subarchs Robin Holt
2013-05-11 12:27   ` Russell King - ARM Linux
2013-05-11 11:57 ` [PATCH -v10 09/11] arm, prepare reboot_mode for moving to generic kernel code Robin Holt
2013-05-11 13:04   ` Russell King - ARM Linux [this message]
2013-05-11 15:47     ` H. Peter Anvin
2013-05-11 19:10       ` Russell King - ARM Linux
2013-05-12  2:49         ` H. Peter Anvin
2013-05-11 11:57 ` [PATCH -v10 10/11] arm, change reboot_mode to use enum reboot_mode Robin Holt
2013-05-11 12:27   ` Russell King - ARM Linux
2013-05-11 11:57 ` [PATCH -v10 11/11] Move arch/x86 reboot= handling to generic kernel Robin Holt
2013-05-11 12:28   ` Russell King - ARM Linux
2013-05-11 12:29 ` [PATCH -v10 00/11] Shutdown from reboot_cpuid without stopping other cpus Russell King - ARM Linux
2013-05-11 12:49 ` Robin Holt

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20130511130457.GD18614@n2100.arm.linux.org.uk \
    --to=linux@arm.linux.org.uk \
    --cc=linux-arm-kernel@lists.infradead.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).