On Saturday 16 November 2013 05:54 AM, Rafael J. Wysocki wrote:
Will cpufreq work during system-wide power transitions (suspend/resume etc.) after this? In particular, what about hibernation?
I am disabling governors as soon as we start suspend. So No, cpufreq wouldn't work during suspend/resume. But once system is resumed we are starting it back again.
Hibernation is probably not supported by my code yet.. I just went through hibernation code quickly and it looks we don't send PM_SUSPEND_PREPARE or PM_POST_SUSPEND notifications in case of hibernation. Correct?
And these are the notifications that we send: - PM_HIBERNATION_PREPARE - PM_POST_HIBERNATION - PM_RESTORE_PREPARE - PM_POST_RESTORE
If I am not wrong I need to stop governors on PM_HIBERNATION_PREPARE and need to start them back on: PM_POST_HIBERNATION (I am a bit confused with this one. Does this POST_HIBERNATION one happens at the end of going into hibernation? or after booting back? I need a notifier at the end of restore)..
-- viresh