[ACPI] fix C1 patch for IA64
authorVenkatesh Pallipadi <venkatesh.pallipadi@intel.com>
Tue, 19 Apr 2005 03:06:47 +0000 (23:06 -0400)
committerLen Brown <len.brown@intel.com>
Tue, 12 Jul 2005 04:10:20 +0000 (00:10 -0400)
http://bugzilla.kernel.org/show_bug.cgi?id=4233

Signed-off-by: Venkatesh Pallipadi <venkatesh.pallipadi@intel.com>
Signed-off-by: Len Brown <len.brown@intel.com>
arch/ia64/kernel/process.c
arch/ia64/kernel/setup.c

index ebb71f3..a9bfba4 100644 (file)
@@ -195,6 +195,7 @@ update_pal_halt_status(int status)
 void
 default_idle (void)
 {
+       local_irq_enable();
        while (!need_resched())
                if (can_do_pal_halt)
                        safe_halt();
index d14692e..bb90331 100644 (file)
@@ -40,6 +40,8 @@
 #include <linux/serial_core.h>
 #include <linux/efi.h>
 #include <linux/initrd.h>
+#include <linux/platform.h>
+#include <linux/pm.h>
 
 #include <asm/ia32.h>
 #include <asm/machvec.h>
@@ -779,6 +781,7 @@ cpu_init (void)
        /* size of physical stacked register partition plus 8 bytes: */
        __get_cpu_var(ia64_phys_stacked_size_p8) = num_phys_stacked*8 + 8;
        platform_cpu_init();
+       pm_idle = default_idle;
 }
 
 void