LKML Archive on lore.kernel.org
help / color / mirror / Atom feed
* [PATCH 1/2] x86: Add nodmi command line option to turn off DMI parsing.
@ 2008-02-28  8:26 Ian Campbell
  2008-02-28  8:26 ` [PATCH 2/2] x86/xen: Disable DMI parsing in Xen kernel Ian Campbell
  0 siblings, 1 reply; 6+ messages in thread
From: Ian Campbell @ 2008-02-28  8:26 UTC (permalink / raw)
  To: linux-kernel
  Cc: Ian Campbell, Thomas Gleixner, Ingo Molnar, H. Peter Anvin,
	Jeremy Fitzhardinge, Mark McLoughlin

Signed-off-by: Ian Campbell <ijc@hellion.org.uk>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Ingo Molnar <mingo@redhat.com>
Cc: H. Peter Anvin <hpa@zytor.com>
Cc: Jeremy Fitzhardinge <jeremy@goop.org>
Cc: Mark McLoughlin <markmc@redhat.com>
---
 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


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2008-02-28 10:45 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-02-28  8:26 [PATCH 1/2] x86: Add nodmi command line option to turn off DMI parsing Ian Campbell
2008-02-28  8:26 ` [PATCH 2/2] x86/xen: Disable DMI parsing in Xen kernel Ian Campbell
2008-02-28  9:31   ` Ian Campbell
2008-02-28  9:46     ` Ingo Molnar
2008-02-28 10:35       ` Ian Campbell
2008-02-28 10:44         ` Ingo Molnar

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).