函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:arch\x86\kernel\cpu\microcode\core.c Create Date:2022-07-27 09:07:51
Last Modify:2020-03-16 20:13:29 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:__wait_for_cpus

函数原型:static int __wait_for_cpus(atomic_t *t, long long timeout)

返回类型:int

参数:

类型参数名称
atomic_t *t
long longtimeout
526  all_cpus等于num_online_cpus()
528  atomic_inc(t)
530 atomic_read(t)小于all_cpus循环
531  如果timeout小于100 nsec
532  打印错误信息("Timeout while waiting for CPUs rendezvous, remaining: %d\n", all_cpus - atomic_read(t))
534  返回:1
537  0x5 is 2**32 / 1000000000 (rounded up) (100 nsec )
538  timeout减等于100 nsec
540  h_nmi_watchdog - restart NMI watchdog timeout.* If the architecture supports the NMI watchdog, touch_nmi_watchdog()* may be used to reset the timeout - for code which intentionally* disables interrupts for a long time. This call is stateless.
542  返回:0
调用者
名称描述
__reload_lateReturns:* < 0 - on error* 0 - no update done* 1 - microcode was updated