函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\sched\idle.c Create Date:2022-07-27 10:38:25
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:play_idle_precise

函数原型:void play_idle_precise(u64 duration_ns, u64 latency_ns)

返回类型:void

参数:

类型参数名称
u64duration_ns
u64latency_ns
328  WARN_ON_ONCE(policy != SCHED_FIFO)
329  WARN_ON_ONCE(nr_cpus_allowed != 1)
330  WARN_ON_ONCE(!(flags & I am a kernel thread ))
331  WARN_ON_ONCE(!(flags & Userland is not allowed to meddle with cpus_mask ))
332  WARN_ON_ONCE(!duration_ns)
334  rcu_sleep_check()
335  禁止抢占()
336  flags或等于I am an IDLE thread
337  cpuidle_use_deepest_state(latency_ns)
339  done等于0
340  hrtimer_init_on_stack( & timer, CLOCK_MONOTONIC, HRTIMER_MODE_REL)
341  function等于idle_inject_timer_fn
342  重启cpu高精度定时器
345  当非READ_ONCE(done)循环
346  Generic idle loop implementation* Called with polling cleared.
348  cpuidle_use_deepest_state(0)
349  flags与等于I am an IDLE thread 的反
351  preempt_fold_need_resched()
352  禁用抢占和中断()
调用者
名称描述
play_idle