diff -u -r linux-2.6.22.7-old/arch/i386/Kconfig linux-2.6.22.7/arch/i386/Kconfig --- linux-2.6.22.7-old/arch/i386/Kconfig 2007-09-21 22:38:23.000000000 +0000 +++ linux-2.6.22.7/arch/i386/Kconfig 2007-09-23 19:40:15.000000000 +0000 @@ -83,10 +83,6 @@ bool default y -config DMI - bool - default y - source "init/Kconfig" menu "Processor type and features" @@ -395,6 +391,19 @@ XFree86 to initialize some video cards via BIOS. Disabling this option saves about 6k. +config DMI + default y + bool "Enable DMI support" if EMBEDDED + depends on X86 + help + This enables support for processing the Desktop Management + Interface structures present in most modern BIOSes. If you are + building a kernel for an older Pentium, 486, or 386 system and + memory is tight, you can disable this to help reduce the size + of your kernel by about 6K. + + If unsure, say Y + config TOSHIBA tristate "Toshiba Laptop support" ---help--- diff -u -r linux-2.6.22.7-old/arch/i386/kernel/acpi/boot.c linux-2.6.22.7/arch/i386/kernel/acpi/boot.c --- linux-2.6.22.7-old/arch/i386/kernel/acpi/boot.c 2007-09-21 22:38:23.000000000 +0000 +++ linux-2.6.22.7/arch/i386/kernel/acpi/boot.c 2007-09-23 19:37:12.000000000 +0000 @@ -891,6 +891,7 @@ return 0; } +#ifdef CONFIG_DMI static int __init dmi_disable_acpi(struct dmi_system_id *d) { if (!acpi_force) { @@ -1097,6 +1098,7 @@ }, {} }; +#endif /* CONFIG_DMI */ #endif /* __i386__ */ @@ -1127,7 +1129,7 @@ { int error; -#ifdef __i386__ +#if defined(__i386__) && defined(CONFIG_DMI) dmi_check_system(acpi_dmi_table); #endif diff -u -r linux-2.6.22.7-old/arch/i386/kernel/acpi/sleep.c linux-2.6.22.7/arch/i386/kernel/acpi/sleep.c --- linux-2.6.22.7-old/arch/i386/kernel/acpi/sleep.c 2007-09-21 22:38:23.000000000 +0000 +++ linux-2.6.22.7/arch/i386/kernel/acpi/sleep.c 2007-09-23 19:36:07.000000000 +0000 @@ -86,6 +86,7 @@ return 0; } +#ifdef CONFIG_DMI static __initdata struct dmi_system_id acpisleep_dmi_table[] = { { /* Reset video mode after returning from ACPI S3 sleep */ .callback = reset_videomode_after_s3, @@ -104,3 +105,5 @@ } core_initcall(acpisleep_dmi_init); +#endif + diff -u -r linux-2.6.22.7-old/arch/i386/kernel/setup.c linux-2.6.22.7/arch/i386/kernel/setup.c --- linux-2.6.22.7-old/arch/i386/kernel/setup.c 2007-09-21 22:38:23.000000000 +0000 +++ linux-2.6.22.7/arch/i386/kernel/setup.c 2007-09-23 19:30:59.000000000 +0000 @@ -611,7 +611,9 @@ * NOTE: at this point the bootmem allocator is fully available. */ +#ifdef CONFIG_DMI dmi_scan_machine(); +#endif #ifdef CONFIG_X86_GENERICARCH generic_apic_probe(); diff -u -r linux-2.6.22.7-old/arch/i386/kernel/tsc.c linux-2.6.22.7/arch/i386/kernel/tsc.c --- linux-2.6.22.7-old/arch/i386/kernel/tsc.c 2007-09-21 22:38:23.000000000 +0000 +++ linux-2.6.22.7/arch/i386/kernel/tsc.c 2007-09-23 19:36:37.000000000 +0000 @@ -290,6 +290,7 @@ } EXPORT_SYMBOL_GPL(mark_tsc_unstable); +#ifdef CONFIG_DMI static int __init dmi_mark_tsc_unstable(struct dmi_system_id *d) { printk(KERN_NOTICE "%s detected: marking TSC unstable.\n", @@ -310,6 +311,7 @@ }, {} }; +#endif /* * Make an educated guess if the TSC is trustworthy and synchronized @@ -369,8 +371,10 @@ set_cyc2ns_scale(cpu_khz); use_tsc_delay(); +#ifdef CONFIG_DMI /* Check and install the TSC clocksource */ dmi_check_system(bad_tsc_dmi_table); +#endif unsynchronized_tsc(); check_geode_tsc_reliable(); diff -u -r linux-2.6.22.7-old/drivers/acpi/Kconfig linux-2.6.22.7/drivers/acpi/Kconfig --- linux-2.6.22.7-old/drivers/acpi/Kconfig 2007-09-21 22:38:23.000000000 +0000 +++ linux-2.6.22.7/drivers/acpi/Kconfig 2007-09-23 19:48:07.000000000 +0000 @@ -263,6 +263,7 @@ config ACPI_BLACKLIST_YEAR int "Disable ACPI for systems before Jan 1st this year" if X86_32 + depends on DMI default 0 help enter a 4-digit year, eg. 2001 to disable ACPI by default diff -u -r linux-2.6.22.7-old/drivers/acpi/osl.c linux-2.6.22.7/drivers/acpi/osl.c --- linux-2.6.22.7-old/drivers/acpi/osl.c 2007-09-21 22:38:23.000000000 +0000 +++ linux-2.6.22.7/drivers/acpi/osl.c 2007-09-23 19:24:27.000000000 +0000 @@ -139,7 +139,9 @@ acpi_status __init acpi_os_initialize(void) { +#ifdef CONFIG_DMI dmi_check_system(acpi_osl_dmi_table); +#endif return AE_OK; }