Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:arch\x86\kernel\cpu\microcode\core.c Create Date:2022-07-28 08:07:42
Last Modify:2020-03-16 20:13:29 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:__wait_for_cpus

Proto:static int __wait_for_cpus(atomic_t *t, long long timeout)

Type:int

Parameter:

TypeParameterName
atomic_t *t
long longtimeout
526  all_cpus = num_online_cpus()
528  atomic_inc(t)
530  When atomic_read(t) < all_cpus cycle
531  If timeout < 100 nsec Then
532  pr_err("Timeout while waiting for CPUs rendezvous, remaining: %d\n", all_cpus - atomic_read(t))
534  Return 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  Return 0
Caller
NameDescribe
__reload_lateReturns:* < 0 - on error* 0 - no update done* 1 - microcode was updated