From: "H. Peter Anvin" <hpa@zytor.com>
To: Russell King - ARM Linux <linux@arm.linux.org.uk>
Cc: Robin Holt <holt@sgi.com>,
Andrew Morton <akpm@linux-foundation.org>,
Russ Anderson <rja@sgi.com>,
the arch/x86 maintainers <x86@kernel.org>,
Linux Kernel Mailing List <linux-kernel@vger.kernel.org>,
Guan Xuetao <gxt@mprc.pku.edu.cn>,
Arm Mailing List <linux-arm-kernel@lists.infradead.org>
Subject: Re: [PATCH -v10 09/11] arm, prepare reboot_mode for moving to generic kernel code.
Date: Sat, 11 May 2013 19:49:20 -0700 [thread overview]
Message-ID: <6ea66d50-a577-4e08-b315-c7a332144f1d@email.android.com> (raw)
In-Reply-To: <20130511191051.GE18614@n2100.arm.linux.org.uk>
Sorry. Yoga programming meaning reversing the arguments to ==.
Russell King - ARM Linux <linux@arm.linux.org.uk> wrote:
>Please, stop this idiotic incomprehensible jargon.
>
>On Sat, May 11, 2013 at 08:47:28AM -0700, H. Peter Anvin wrote:
>> By the way, do we really need Yoda programming here?
>>
>> Russell King - ARM Linux <linux@arm.linux.org.uk> wrote:
>>
>> >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;
>>
>> --
>> Sent from my mobile phone. Please excuse brevity and lack of
>formatting.
--
Sent from my mobile phone. Please excuse brevity and lack of formatting.
next prev parent reply other threads:[~2013-05-12 2:50 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
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 [this message]
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=6ea66d50-a577-4e08-b315-c7a332144f1d@email.android.com \
--to=hpa@zytor.com \
--cc=akpm@linux-foundation.org \
--cc=gxt@mprc.pku.edu.cn \
--cc=holt@sgi.com \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux@arm.linux.org.uk \
--cc=rja@sgi.com \
--cc=x86@kernel.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