suspend
2017-08-08 11:06:11 0 举报
AI智能生成
linux suspend 调用流程
作者其他创作
大纲/内容
pm_suspend
enter_state
sys_sync
suspend_prepare
suspend_devices_and_enter
suspend_finish
1. pm_prepare_console
2. pm_notifier_call_chain
3. suspend_freeze_processes
2. pm_notifier_call_chain
3. suspend_freeze_processes
1. freeze_processes
2. freeze_kernel_threads
2. freeze_kernel_threads
suspend_ops->begin(state)
dpm_suspend_start(PMSG_SUSPEND);
suspend_console
suspend_enter
dpm_prepare
dpm_suspend
device prepare
device suspend
suspend_ops->prepare
dpm_suspend_end
suspend_ops->prepare_late
disable_nonboot_cpus
arch_suspend_disable_irqs
syscore_suspend
device suspend_late
device suspend_noirq
suspend_ops->enter(state)
imx6q_pm_enter
syscore_resume
arch_suspend_enable_irqs
enable_nonboot_cpus
suspend_ops->wake
dpm_resume_start
suspend_ops->finish
arch_suspend_enable_irqs
enable_nonboot_cpus
suspend_ops->wake
dpm_resume_start
suspend_ops->finish
write to
/sys/power/state
/sys/power/state
freeze process and thread
suspend device
suspend CPU & irq
suspend ....
enable CPU & irq
resume device
resume process & thread
back to the behind of write
0 条评论
下一页