Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\power\process.c Create Date:2022-07-28 09:57:44
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:thaw_processes

Proto:void thaw_processes(void)

Type:void

Parameter:Nothing

192  curr = current process
194  trace_suspend_resume(TPS("thaw_processes"), 0, true)
195  If pm_freezing Then atomic_dec( & system_freezing_cnt)
197  pm_freezing = false
198  pm_nosig_freezing = false
200  oom_killer_enable()
202  pr_info("Restarting tasks ... ")
204  __usermodehelper_set_disable_depth - Modify usermodehelper_disabled.*@depth: New value to assign to usermodehelper_disabled.* Change the value of usermodehelper_disabled (under umhelper_sem locked for* writing) and wakeup tasks waiting for it to change.
205  thaw_workqueues()
207  cpuset_wait_for_hotplug()
209  read_lock( & tasklist_lock)
210  Careful: this is a double loop, 'break' won't work as expected. (g, p)
212  WARN_ON((p != curr) && ( Per task flags (PF_*), defined further below: & This thread called freeze_processes() and should not be frozen ))
213  __thaw_task(p)
215  read_unlock( & tasklist_lock)
217  WARN_ON(!( Per task flags (PF_*), defined further below: & This thread called freeze_processes() and should not be frozen ))
218  Per task flags (PF_*), defined further below: &= ~This thread called freeze_processes() and should not be frozen
220  usermodehelper_enable()
222  schedule()
223  Like KERN_CONT, pr_cont() should only be used when continuing* a line with no newline ('\n') enclosed. Otherwise it defaults* back to KERN_DEFAULT.("done.\n")
224  trace_suspend_resume(TPS("thaw_processes"), 0, false)
Caller
NameDescribe
freeze_processesze_processes - Signal user space processes to enter the refrigerator.* The current thread will not be frozen. The same process that calls* freeze_processes must later call thaw_processes.* On success, returns 0
hibernatehibernate - Carry out system hibernation, including saving the image.
software_resumesoftware_resume - Resume from a saved hibernation image.* This routine is called as a late initcall, when all devices have been* discovered and initialized already.* The image reading code is called to see if there is a hibernation image
snapshot_release
snapshot_ioctl