From: Alan Cox <alan@lxorguk.ukuu.org.uk>
To: Michael D Labriola <mlabriol@gdeb.com>
Cc: Ingo Molnar <mingo@elte.hu>,
Matthew Garrett <mjg59@srcf.ucam.org>,
"H. Peter Anvin" <hpa@zytor.com>,
Kushal Koolwal <kushalkoolwal@gmail.com>,
linux-kernel@vger.kernel.org, michael.d.labriola@gmail.com,
support@versalogic.com, Thomas Gleixner <tglx@linutronix.de>,
x86@kernel.org
Subject: Re: [PATCH] x86, reboot: skip DMI checks if reboot set by user
Date: Tue, 17 Jan 2012 19:58:41 +0000 [thread overview]
Message-ID: <20120117195841.48fe8236@pyramind.ukuu.org.uk> (raw)
In-Reply-To: <OF70B406E9.8D4A6789-ON85257988.0052C104-85257988.0053DE1E@gdeb.com>
On Tue, 17 Jan 2012 10:16:03 -0500
Michael D Labriola <mlabriol@gdeb.com> wrote:
> This commit causes DMI checks for vendor specific reboot
> quirks to be skipped if the user passed in a reboot= arg
> on the command line.
>
> Signed-off-by: Michael D Labriola <mlabriol@gdeb.com>
> ---
> arch/x86/kernel/reboot.c | 16 ++++++++++++++--
> 1 files changed, 14 insertions(+), 2 deletions(-)
>
> diff --git a/arch/x86/kernel/reboot.c b/arch/x86/kernel/reboot.c
> index 37a458b..4240d58 100644
> --- a/arch/x86/kernel/reboot.c
> +++ b/arch/x86/kernel/reboot.c
> @@ -38,6 +38,7 @@ static const struct desc_ptr no_idt = {};
> static int reboot_mode;
> enum reboot_type reboot_type = BOOT_ACPI;
> int reboot_force;
> +int reboot_user;
static ...
> case 'f':
> reboot_force = 1;
> + reboot_user = 1;
Cleaner would be to add a
BOOT_ACPI_FORCE perhaps so you can tell ACPI v ACPI specified by user
> break;
> }
>
> @@ -316,7 +322,10 @@ static struct dmi_system_id __initdata
> reboot_dmi_table[] = {
>
> static int __init reboot_init(void)
> {
> - dmi_check_system(reboot_dmi_table);
> + /* Skip the DMI check if user set reboot= on the command line */
> + if (!reboot_user) {
then do
if (reboot_type == BOOT_ACPI)
> + dmi_check_system(reboot_dmi_table);
> + }
next prev parent reply other threads:[~2012-01-17 20:00 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-01-17 15:16 [PATCH] x86, reboot: skip DMI checks if reboot set by user Michael D Labriola
2012-01-17 19:58 ` Alan Cox [this message]
2012-01-19 15:32 ` Michael D Labriola
2012-01-19 15:45 ` Alan Cox
2012-01-19 15:48 ` Michael D Labriola
[not found] ` <OF8642E997.5ED041E1-ON8525798A.0056983A-8525798A.0056E05B@LocalDomain>
2012-01-19 17:46 ` Michael D Labriola
2012-01-19 17:52 ` H. Peter Anvin
2012-01-19 19:14 ` Michael D Labriola
2012-01-19 19:17 ` H. Peter Anvin
2012-01-19 19:34 ` Michael D Labriola
2012-01-19 19:41 ` Ingo Molnar
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=20120117195841.48fe8236@pyramind.ukuu.org.uk \
--to=alan@lxorguk.ukuu.org.uk \
--cc=hpa@zytor.com \
--cc=kushalkoolwal@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=michael.d.labriola@gmail.com \
--cc=mingo@elte.hu \
--cc=mjg59@srcf.ucam.org \
--cc=mlabriol@gdeb.com \
--cc=support@versalogic.com \
--cc=tglx@linutronix.de \
--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