Hi Pavel, > > This revamps the apm-emulation code to get suspend notifications > > regardless of what way pm_suspend() was invoked, whether via the > > apm ioctl or via /sys/power/state. Also do some code cleanup and > > add comments while at it. > > Does this actually change user-kernel ABI? Not ABI, but there is a change in behaviour (which is the whole point of this patch). Previously, tools using /sys/power/state would live in one sandbox and tools using APM in another, not knowing about each other but both influencing the system suspend state. This makes them actually know about each other by making the APM emulation indicate all system sleep events, even those done via /sys/power/state and not the APM emulation itself. > > +enum apm_suspend_state { > > + SUSPEND_NONE, > These are not passed to userspace, are they? No, they're just for the internal state machine. johannes
Attachment:
signature.asc
Description: This is a digitally signed message part
_______________________________________________ linux-pm mailing list linux-pm@xxxxxxxxxxxxxxxxxxxxxxxxxx https://lists.linux-foundation.org/mailman/listinfo/linux-pm