Re: [PATCH] powermac: proper sleep management

2007-12-03 Thread Paul Mackerras
Johannes Berg writes: + printk(KERN_INFO +via-pmu: the PMU_IOC_SLEEP ioctl is deprecated.\n); + printk(KERN_INFO via-pmu: use \echo mem + /sys/power/state\ instead!\n); + printk(KERN_INFO +

[PATCH] powermac: proper sleep management

2007-11-14 Thread Johannes Berg
This adds platform_suspend_ops for PMU based machines, directly in the PMU driver. This finally allows suspending via /sys/power/state on powerbooks. The patch also replaces the PMU ioctl with a simple call to pm_suspend(PM_SUSPEND_MEM) and puts the sleep-related PMU ioctls onto the