>From a7d4508949cc19fd6ade9ab5efbe05ae8e842baf Mon Sep 17 00:00:00 2001 From: Tang Liang Date: Tue, 25 Oct 2011 11:51:49 +0800 Subject: [PATCH] fixed the acpi sleep disable complied bug this is a template patch for complied bug --- arch/x86/kernel/acpi/boot.c | 5 +++++ 1 files changed, 5 insertions(+), 0 deletions(-) diff --git a/arch/x86/kernel/acpi/boot.c b/arch/x86/kernel/acpi/boot.c index ddd081b..0c3068f 100644 --- a/arch/x86/kernel/acpi/boot.c +++ b/arch/x86/kernel/acpi/boot.c @@ -557,7 +557,12 @@ int (*__acpi_override_sleep)(u8 sleep_state, u32 pm1a_ctrl, u32 pm1b_ctrl, bool *skip_rest) \ __attribute__ ((unused)) = NULL; +#ifdef CONFIG_ACPI_SLEEP int (*acpi_suspend_lowlevel)(void) = x86_acpi_suspend_lowlevel; +#else +int (*acpi_suspend_lowlevel)(void); +#endif + /* * success: return IRQ number (>=0) * failure: return < 0 -- 1.7.6