
#
# Patch managed by http://www.holgerschurig.de/patcher.html
#

--- linux-2.6.10-rc2/arch/arm/mach-pxa/pm.c~corgi_power1
+++ linux-2.6.10-rc2/arch/arm/mach-pxa/pm.c
@@ -65,6 +65,11 @@
 
 static int pxa_pm_enter(suspend_state_t state)
 {
+	while (corgi_enter_suspend()) pxa_pm_enter1(state);
+}
+	
+static int pxa_pm_enter1(suspend_state_t state)
+{	
 	unsigned long sleep_save[SLEEP_SAVE_SIZE];
 	unsigned long checksum = 0;
 	struct timespec delta, rtc;
