From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S965540AbXAWWKZ (ORCPT ); Tue, 23 Jan 2007 17:10:25 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S965570AbXAWWJh (ORCPT ); Tue, 23 Jan 2007 17:09:37 -0500 Received: from www.osadl.org ([213.239.205.134]:35895 "EHLO mail.tglx.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S965505AbXAWWBL (ORCPT ); Tue, 23 Jan 2007 17:01:11 -0500 Message-Id: <20070123211207.411593000@localhost.localdomain> References: <20070123211159.178138000@localhost.localdomain> Date: Tue, 23 Jan 2007 22:01:25 -0000 From: Thomas Gleixner To: Andrew Morton Cc: LKML , Ingo Molnar , John Stultz , Arjan van de Veen , Roman Zippel Subject: [patch 29/46] ACPI: fix missing include for UP Content-Disposition: inline; filename=acpi-include-fix.patch Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org From: Thomas Gleixner apic.h does not get included on UP compiles. That way the APICTIMER_STOPS_ON_C3 is not there and UP boxen have no support for timer broadcasting. This was never noticed, because the lapic timer is only used for profiling on UP. Signed-off-by: Thomas Gleixner Signed-off-by: Ingo Molnar Cc: Roman Zippel Cc: john stultz Cc: Len Brown Cc: Andi Kleen Signed-off-by: Andrew Morton --- drivers/acpi/processor_idle.c | 10 ++++++++++ 1 file changed, 10 insertions(+) Index: linux-2.6.20-rc4-mm1-bo/drivers/acpi/processor_idle.c =================================================================== --- linux-2.6.20-rc4-mm1-bo.orig/drivers/acpi/processor_idle.c +++ linux-2.6.20-rc4-mm1-bo/drivers/acpi/processor_idle.c @@ -40,6 +40,16 @@ #include /* need_resched() */ #include +/* + * Include the apic definitions for x86 to have the APIC timer related defines + * available also for UP (on SMP it gets magically included via linux/smp.h). + * asm/acpi.h is not an option, as it would require more include magic. Also + * creating an empty asm-ia64/apic.h would just trade pest vs. cholera. + */ +#ifdef CONFIG_X86 +#include +#endif + #include #include --