suspend
2017-08-08 11:06:11 0 举报
AI智能生成
linux suspend 调用流程
作者其他创作
大纲/内容
echo mem > /sys/power/state
pm_suspend
enter_state
sys_sync
suspend_prepare
suspend_devices_and_enter
suspend_finish
1. pm_prepare_console2. pm_notifier_call_chain3. suspend_freeze_processes
1. freeze_processes2. 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_resumearch_suspend_enable_irqsenable_nonboot_cpussuspend_ops->wakedpm_resume_startsuspend_ops->finish
write to/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 条评论
回复 删除
下一页