--- linux-2.6.17/arch/arm/mach-pxa/pm.c 2006-06-18 03:49:35.000000000 +0200 +++ linux-2.6.17-nbp0/arch/arm/mach-pxa/pm.c 2006-07-26 16:04:00.802842520 +0200 @@ -73,6 +73,11 @@ SLEEP_SAVE_SIZE }; +#ifdef CONFIG_MACH_NETBOOKPRO +#include +#endif + + int pxa_pm_enter(suspend_state_t state) { @@ -110,6 +115,15 @@ SAVE(PFER); SAVE(PKWR); #endif +#ifdef CONFIG_MACH_NETBOOKPRO + if (netbookpro_pm_pre_sleep(virt_to_phys(pxa_cpu_resume)) != 0) { + printk(KERN_ERR "sleep code cannot allow sleep now\n"); + return -EINVAL; + } +#endif + + + SAVE(ICMR); ICMR = 0;