函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:arch\x86\kernel\smp.c Create Date:2022-07-27 09:23:24
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:native_stop_other_cpus

函数原型:static void native_stop_other_cpus(int wait)

返回类型:void

参数:

类型参数名称
intwait
153  如果reboot_force则返回
170  如果num_online_cpus()大于1则
172  如果atomic_cmpxchg( & Some notes on x86 processor bugs affecting SMP operation:* Pentium, Pentium Pro, II, III (and all CPUs) have bugs.* The Linux implications for SMP are handled as follows:* Pentium III / [Xeon]* None of the E1AP-E3AP errata are visible to the user.* E1AP, - 1, safe_smp_processor_id())不等于负1则返回
176  wmb()
178  apic_send_IPI_allbutself(REBOOT_VECTOR)
186  timeout等于USEC_PER_SEC
187 num_online_cpus()大于1且timeout自减循环
188  0x10c7 is 2**32 / 1000000 (rounded up) (1)
192  如果num_online_cpus()大于1则
198  如果非smp_no_nmi_ipi且非register_stop_handler()则
200  wmb()
211  timeout等于USEC_PER_MSEC乘10
212 num_online_cpus()大于1且waittimeout自减的值循环
213  0x10c7 is 2**32 / 1000000 (rounded up) (1)
216  local_irq_save(flags)
217  disable_local_APIC()
218  Called for each booted CPU to clear some machine checks opt-ins
219  local_irq_restore(flags)