Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:sume_target_kernel - Restore system state from a hibernation image

Proto:static int resume_target_kernel(bool platform_mode)

Type:int

Parameter:

TypeParameterName
boolplatform_mode
444  error = dpm_suspend_end(PMSG_QUIESCE)
445  If error Then
446  pr_err("Some devices failed to power down, aborting resume\n")
447  Return error
450  error = platform_pre_restore - Prepare for hibernate image restoration
451  If error Then Go to Cleanup
454  error = hibernate_resume_nonboot_cpu_disable()
455  If error Then Go to Enable_cpus
458  local_irq_disable()
459  Values used for system_state. Ordering of the states must not be changed* as code checks for <, <=, >, >= STATE. = SYSTEM_SUSPEND
461  error = syscore_suspend()
462  If error Then Go to Enable_irqs
465  save_processor_state()
466  error = restore_highmem()
467  If Not error Then
468  error = swsusp_arch_resume()
474  BUG_ON(!error)
479  restore_highmem()
486  swsusp_free()
487  restore_processor_state()
488  touch_softlockup_watchdog()
490  syscore_resume()
492  Enable_irqs :
493  Values used for system_state. Ordering of the states must not be changed* as code checks for <, <=, >, >= STATE. = SYSTEM_RUNNING
494  The local_irq_*() APIs are equal to the raw_local_irq*()* if !TRACE_IRQFLAGS.()
496  Enable_cpus :
497  suspend_enable_secondary_cpus()
499  Cleanup :
500  platform_restore_cleanup - Switch to the working state after failing restore
502  dpm_resume_start(PMSG_RECOVER)
504  Return error
Caller
NameDescribe
hibernation_restorehibernation_restore - Quiesce devices and restore from a hibernation image