Hi, If nobody objects, i'd send this to LKML: Maybe somebody with a recent -mm kernel can test if it still applies there :-)
------------------------------------------------------------------------------ Subject: swsusp: fix platform mode Somewhen after 2.6.9, the in-kernel suspend got "incomplete" for the so-called "platform" mode. pm_ops->prepare() is never called. Signed-off-by: Stefan Seyfried <[EMAIL PROTECTED]> --- kernel/power/disk.c~ 2006-10-16 20:18:04.000000000 +0200 +++ kernel/power/disk.c 2006-10-16 20:36:14.000000000 +0200 @@ -59,6 +59,14 @@ static void power_down(suspend_disk_meth while(1); } +static inline void platform_prepare(void) +{ + if (pm_disk_mode == PM_DISK_PLATFORM) { + if (pm_ops && pm_ops->prepare) + pm_ops->prepare(PM_SUSPEND_DISK); + } +} + static inline void platform_finish(void) { if (pm_disk_mode == PM_DISK_PLATFORM) { @@ -73,6 +81,7 @@ static int prepare_processes(void) pm_prepare_console(); disable_nonboot_cpus(); + platform_prepare(); if (freeze_processes()) { error = -EBUSY; @@ -83,6 +92,7 @@ static int prepare_processes(void) if (!(error = swsusp_shrink_memory())) return 0; thaw: + platform_finish(); thaw_processes(); enable_nonboot_cpus(); pm_restore_console(); -- Stefan Seyfried QA / R&D Team Mobile Devices | "Any ideas, John?" SUSE LINUX Products GmbH, Nürnberg | "Well, surrounding them's out." ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ Suspend-devel mailing list Suspend-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/suspend-devel