[PATCH 1/2] x86: Add nodmi command line option to turn off DMI parsing.
From: Ian Campbell
Date: Thu Feb 28 2008 - 03:26:45 EST
Signed-off-by: Ian Campbell <ijc@xxxxxxxxxxxxxx>
Cc: Thomas Gleixner <tglx@xxxxxxxxxxxxx>
Cc: Ingo Molnar <mingo@xxxxxxxxxx>
Cc: H. Peter Anvin <hpa@xxxxxxxxx>
Cc: Jeremy Fitzhardinge <jeremy@xxxxxxxx>
Cc: Mark McLoughlin <markmc@xxxxxxxxxx>
---
drivers/firmware/dmi_scan.c | 12 ++++++++++++
1 files changed, 12 insertions(+), 0 deletions(-)
diff --git a/drivers/firmware/dmi_scan.c b/drivers/firmware/dmi_scan.c
index 4072449..62b6200 100644
--- a/drivers/firmware/dmi_scan.c
+++ b/drivers/firmware/dmi_scan.c
@@ -117,6 +117,12 @@ static int __init dmi_checksum(const u8 *buf)
static char *dmi_ident[DMI_STRING_MAX];
static LIST_HEAD(dmi_devices);
int dmi_available;
+static int __init setup_disable_dmi(char *str)
+{
+ dmi_available = -1;
+ return 0;
+}
+early_param("nodmi", setup_disable_dmi);
/*
* Save a DMI string
@@ -359,6 +365,12 @@ void __init dmi_scan_machine(void)
char __iomem *p, *q;
int rc;
+ if (dmi_available < 0) {
+ printk(KERN_INFO "DMI disabled.\n");
+ dmi_available = 0;
+ return;
+ }
+
if (efi_enabled) {
if (efi.smbios == EFI_INVALID_TABLE_ADDR)
goto out;
--
1.5.4.2
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/