Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\power\suspend.c Create Date:2022-07-28 09:58:06
Last Modify:2020-03-17 14:47:48 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:s2idle_enter

Proto:static void s2idle_enter(void)

Type:void

Parameter:Nothing

90  trace_suspend_resume(TPS("machine_suspend"), PM_SUSPEND_TO_IDLE, true)
92  raw_spin_lock_irq( & s2idle_lock)
93  If pm_wakeup_pending() Then Go to out
96  s2idle_state = S2IDLE_STATE_ENTER
97  raw_spin_unlock_irq( & s2idle_lock)
99  get_online_cpus()
100  cpuidle_resume()
103  wake_up_all_idle_cpus()
105  swait_event_exclusive(s2idle_wait_head, s2idle_state == S2IDLE_STATE_WAKE)
108  cpuidle_pause()
109  put_online_cpus()
111  raw_spin_lock_irq( & s2idle_lock)
113  out :
114  s2idle_state = S2IDLE_STATE_NONE
115  raw_spin_unlock_irq( & s2idle_lock)
117  trace_suspend_resume(TPS("machine_suspend"), PM_SUSPEND_TO_IDLE, false)
Caller
NameDescribe
s2idle_loop