On 4/11/07, Tim Dijkstra <[EMAIL PROTECTED]> wrote: > Luca Tettamanti schreef: > > Add s2ram support for PPC architecture. s2ram.{c,h} contain the > > implementation of the required functions, used by the main file. The > > Makefile selects the correct platform files using $(ARCH) variable > > (autodetected by default, can be overridden). > > > > PPC code is based on original patch from Tim Dijkstra. > > I haven't looked to closely at it, I can't access my machine right now. > But this patch doesn't seem correct. IIRC, s2ram_hacks is called before we > really suspend the system, but the ppc version would. I'll take a closer > look tomorrow night.
The logic in your patch was: - check PMU_IOC_CAN_SLEEP - try PMU_IOC_SLEEP - try /sys/power/mem iff PMU_IOC_SLEEP fails I've preserved this. It's a bit ugly though ;-) Luca ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ _______________________________________________ Suspend-devel mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/suspend-devel