PATCH: fix non SMP acpi build

PATCH: fix non SMP acpi build

Post by Alan Co » Sat, 15 Feb 2003 23:50:13



diff -u --new-file --recursive --exclude-from /usr/src/exclude linux-2.5.60-ref/include/asm-i386/mach-default/mach_apic.h linux-2.5.60-ac1/include/asm-i386/mach-default/mach_apic.h
--- linux-2.5.60-ref/include/asm-i386/mach-default/mach_apic.h  2003-02-14 21:21:46.000000000 +0000

 #ifndef __ASM_MACH_APIC_H
 #define __ASM_MACH_APIC_H

+#ifdef CONFIG_LOCAL_APIC
+
 #define APIC_DFR_VALUE (APIC_DFR_FLAT)


        return test_bit(boot_cpu_physical_apicid, &phys_cpu_present_map);
 }

+#endif
+
 #endif /* __ASM_MACH_APIC_H */
diff -u --new-file --recursive --exclude-from /usr/src/exclude linux-2.5.60-ref/arch/i386/kernel/acpi/boot.c linux-2.5.60-ac1/arch/i386/kernel/acpi/boot.c
--- linux-2.5.60-ref/arch/i386/kernel/acpi/boot.c       2003-02-14 21:45:55.000000000 +0000

 #include <linux/init.h>
 #include <linux/acpi.h>
 #include <asm/pgalloc.h>
+#include <asm/mpspec.h>

 #include <mach_apic.h>
 #include <mach_mpparse.h>
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in

More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

 
 
 

PATCH: fix non SMP acpi build

Post by Jeff Garzi » Sun, 16 Feb 2003 00:10:06


Thanks!  I was too lazy to create this patch myself...
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in

More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

 
 
 

1. [PATCH] Fix drivers/acpi/sleep.c compile error if swsusp is disabled

Hi, this should fix this compile problem (if this is correct).

Please apply.

Shawn.

diff -urpN  linux-2.5.47-vanilla/drivers/acpi/sleep.c linux-2.5.47-fixes/drivers/acpi/sleep.c
--- linux-2.5.47-vanilla/drivers/acpi/sleep.c   2002-11-13 22:40:07.000000000 -0500

                break;

        case ACPI_STATE_S2:
+#ifdef CONFIG_SOFTWARE_SUSPEND
        case ACPI_STATE_S3:
                do_suspend_lowlevel(0);
+#endif
                break;
        }
        local_irq_restore(flags);

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in

More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

2. Mapping bad sections on IDE Drive

3. [Fwd: Re: Waking up Non-acpi (and non-apm) compliant IDE devices]

4. quota

5. Waking up Non-acpi (and non-apm) compliant IDE devices

6. ViewSonic LCD monitor, portrait mode

7. Fixing ACPI compilation, fixing CONFIG_ACPI_BOOT

8. Henryk Paluch's Lexmark 5700 Printer driver

9. 2.5.64-bk7 alpha-smp build problems + patch

10. ACPI IRQ routing (was [ACPI] ACPI source release updated (200 11205))

11. [PATCH] fix UP local APIC on SMP Athlon

12. PCI: fix non-hotplug build

13. Resend - [PATCH] Fix SMP lockup in usbdevfs