* [PATCH] reboot: re-enable the function of variable reboot_default
@ 2013-09-09 11:49 Chuansheng Liu
2013-09-09 15:06 ` Robin Holt
2013-09-10 19:51 ` [tip:x86/reboot] reboot: Re-enable " tip-bot for Chuansheng Liu
0 siblings, 2 replies; 4+ messages in thread
From: Chuansheng Liu @ 2013-09-09 11:49 UTC (permalink / raw)
To: mingo, holt, hpa, rmk+kernel, rja, akpm
Cc: linux-kernel, fei.li, chuansheng.liu
commit b3a5d02ee070c(reboot: move arch/x86 reboot= handling to generic kernel)
did some cleanup for reboot= command line, but it made the reboot_default
to be invalidated.
The default value of variable reboot_default should be 1, and if command line
reboot= is not set, system will use the default reboot mode.
Signed-off-by: Li Fei <fei.li@intel.com>
Signed-off-by: liu chuansheng <chuansheng.liu@intel.com>
---
kernel/reboot.c | 9 ++++++++-
1 files changed, 8 insertions(+), 1 deletions(-)
diff --git a/kernel/reboot.c b/kernel/reboot.c
index 269ed93..d82eb6e 100644
--- a/kernel/reboot.c
+++ b/kernel/reboot.c
@@ -32,7 +32,14 @@ EXPORT_SYMBOL(cad_pid);
#endif
enum reboot_mode reboot_mode DEFAULT_REBOOT_MODE;
-int reboot_default;
+/*
+ * This variable is used privately to keep track of whether or not
+ * reboot_type is still set to its default value (i.e., reboot= hasn't
+ * been set on the command line). This is needed so that we can
+ * suppress DMI scanning for reboot quirks. Without it, it's
+ * impossible to override a faulty reboot quirk without recompiling.
+*/
+int reboot_default = 1;
int reboot_cpu;
enum reboot_type reboot_type = BOOT_ACPI;
int reboot_force;
--
1.7.0.4
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] reboot: re-enable the function of variable reboot_default
2013-09-09 11:49 [PATCH] reboot: re-enable the function of variable reboot_default Chuansheng Liu
@ 2013-09-09 15:06 ` Robin Holt
2013-09-09 23:35 ` Liu, Chuansheng
2013-09-10 19:51 ` [tip:x86/reboot] reboot: Re-enable " tip-bot for Chuansheng Liu
1 sibling, 1 reply; 4+ messages in thread
From: Robin Holt @ 2013-09-09 15:06 UTC (permalink / raw)
To: Chuansheng Liu
Cc: mingo, holt, hpa, rmk+kernel, rja, akpm, linux-kernel, fei.li
On Mon, Sep 09, 2013 at 07:49:40PM +0800, Chuansheng Liu wrote:
>
> commit b3a5d02ee070c(reboot: move arch/x86 reboot= handling to generic kernel)
The commit id was really 1b3a5d02ee070c
> did some cleanup for reboot= command line, but it made the reboot_default
> to be invalidated.
>
> The default value of variable reboot_default should be 1, and if command line
> reboot= is not set, system will use the default reboot mode.
>
> Signed-off-by: Li Fei <fei.li@intel.com>
> Signed-off-by: liu chuansheng <chuansheng.liu@intel.com>
Acked-by: Robin Holt <robinmholt@linux.com>
Thank you for fixing my bug.
Note: My email address used to be holt@sgi.com
> ---
> kernel/reboot.c | 9 ++++++++-
> 1 files changed, 8 insertions(+), 1 deletions(-)
>
> diff --git a/kernel/reboot.c b/kernel/reboot.c
> index 269ed93..d82eb6e 100644
> --- a/kernel/reboot.c
> +++ b/kernel/reboot.c
> @@ -32,7 +32,14 @@ EXPORT_SYMBOL(cad_pid);
> #endif
> enum reboot_mode reboot_mode DEFAULT_REBOOT_MODE;
>
> -int reboot_default;
> +/*
> + * This variable is used privately to keep track of whether or not
> + * reboot_type is still set to its default value (i.e., reboot= hasn't
> + * been set on the command line). This is needed so that we can
> + * suppress DMI scanning for reboot quirks. Without it, it's
> + * impossible to override a faulty reboot quirk without recompiling.
> +*/
> +int reboot_default = 1;
> int reboot_cpu;
> enum reboot_type reboot_type = BOOT_ACPI;
> int reboot_force;
> --
> 1.7.0.4
>
>
>
> --
> To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at http://www.tux.org/lkml/
^ permalink raw reply [flat|nested] 4+ messages in thread
* RE: [PATCH] reboot: re-enable the function of variable reboot_default
2013-09-09 15:06 ` Robin Holt
@ 2013-09-09 23:35 ` Liu, Chuansheng
0 siblings, 0 replies; 4+ messages in thread
From: Liu, Chuansheng @ 2013-09-09 23:35 UTC (permalink / raw)
To: Robin Holt; +Cc: mingo, holt, hpa, rmk+kernel, rja, akpm, linux-kernel, Li, Fei
> -----Original Message-----
> From: Robin Holt [mailto:robinmholt@linux.com]
> Sent: Monday, September 09, 2013 11:07 PM
> To: Liu, Chuansheng
> Cc: mingo@kernel.org; holt@sgi.com; hpa@zytor.com;
> rmk+kernel@arm.linux.org.uk; rja@sgi.com; akpm@linux-foundation.org;
> linux-kernel@vger.kernel.org; Li, Fei
> Subject: Re: [PATCH] reboot: re-enable the function of variable reboot_default
>
> On Mon, Sep 09, 2013 at 07:49:40PM +0800, Chuansheng Liu wrote:
> >
> > commit b3a5d02ee070c(reboot: move arch/x86 reboot= handling to generic
> kernel)
>
> The commit id was really 1b3a5d02ee070c
>
> > did some cleanup for reboot= command line, but it made the reboot_default
> > to be invalidated.
> >
> > The default value of variable reboot_default should be 1, and if command line
> > reboot= is not set, system will use the default reboot mode.
> >
> > Signed-off-by: Li Fei <fei.li@intel.com>
> > Signed-off-by: liu chuansheng <chuansheng.liu@intel.com>
>
> Acked-by: Robin Holt <robinmholt@linux.com>
>
> Thank you for fixing my bug.
>
> Note: My email address used to be holt@sgi.com
Thanks Robin to ack and notify, I also was wondering why the email is undelivered to your old EMAIL:)
^ permalink raw reply [flat|nested] 4+ messages in thread
* [tip:x86/reboot] reboot: Re-enable the function of variable reboot_default
2013-09-09 11:49 [PATCH] reboot: re-enable the function of variable reboot_default Chuansheng Liu
2013-09-09 15:06 ` Robin Holt
@ 2013-09-10 19:51 ` tip-bot for Chuansheng Liu
1 sibling, 0 replies; 4+ messages in thread
From: tip-bot for Chuansheng Liu @ 2013-09-10 19:51 UTC (permalink / raw)
To: linux-tip-commits
Cc: robinmholt, linux-kernel, hpa, mingo, tglx, hpa, chuansheng.liu, fei.li
Commit-ID: e635be963eb2e9883e8124b75dff0c2e29857a6e
Gitweb: http://git.kernel.org/tip/e635be963eb2e9883e8124b75dff0c2e29857a6e
Author: Chuansheng Liu <chuansheng.liu@intel.com>
AuthorDate: Mon, 9 Sep 2013 19:49:40 +0800
Committer: H. Peter Anvin <hpa@linux.intel.com>
CommitDate: Tue, 10 Sep 2013 08:48:40 -0700
reboot: Re-enable the function of variable reboot_default
Commit 1b3a5d02ee070c (reboot: move arch/x86 reboot= handling to
generic kernel) did some cleanup for reboot= command line, but it made
the reboot_default to be invalidated.
The default value of variable reboot_default should be 1, and if command line
reboot= is not set, system will use the default reboot mode.
Signed-off-by: Li Fei <fei.li@intel.com>
Link: http://lkml.kernel.org/r/1378727380.26153.8.camel@cliu38-desktop-build
Signed-off-by: liu chuansheng <chuansheng.liu@intel.com>
Acked-by: Robin Holt <robinmholt@linux.com>
Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
---
kernel/reboot.c | 9 ++++++++-
1 file changed, 8 insertions(+), 1 deletion(-)
diff --git a/kernel/reboot.c b/kernel/reboot.c
index 269ed93..d82eb6e 100644
--- a/kernel/reboot.c
+++ b/kernel/reboot.c
@@ -32,7 +32,14 @@ EXPORT_SYMBOL(cad_pid);
#endif
enum reboot_mode reboot_mode DEFAULT_REBOOT_MODE;
-int reboot_default;
+/*
+ * This variable is used privately to keep track of whether or not
+ * reboot_type is still set to its default value (i.e., reboot= hasn't
+ * been set on the command line). This is needed so that we can
+ * suppress DMI scanning for reboot quirks. Without it, it's
+ * impossible to override a faulty reboot quirk without recompiling.
+*/
+int reboot_default = 1;
int reboot_cpu;
enum reboot_type reboot_type = BOOT_ACPI;
int reboot_force;
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2013-09-10 19:52 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-09-09 11:49 [PATCH] reboot: re-enable the function of variable reboot_default Chuansheng Liu
2013-09-09 15:06 ` Robin Holt
2013-09-09 23:35 ` Liu, Chuansheng
2013-09-10 19:51 ` [tip:x86/reboot] reboot: Re-enable " tip-bot for Chuansheng Liu
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Powered by JetHome