函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:Various sanity checks.

函数原型:static void __init smp_sanity_check(void)

返回类型:void

参数:

1238  禁止抢占()
1241  如果def_to_bigsmpnr_cpu_ids大于8则
1245  打印警告信息("More than 8 CPUs detected - skipping them\nUse CONFIG_X86_BIGSMP\n")
1248  nr等于0
1250  如果nr大于等于8则set_cpu_present(cpu, false)
1252  nr自加
1255  nr等于0
1257  如果nr大于等于8则set_cpu_possible(cpu, false)
1259  nr自加
1262  nr_cpu_ids等于8
1266  如果非physid_isset(hard_smp_processor_id(), phys_cpu_present_map)则
1267  打印警告信息("weird, boot CPU (#%d) not listed by the BIOS\n", hard_smp_processor_id())
1270  physid_set(hard_smp_processor_id(), phys_cpu_present_map)
1277  如果非check_phys_apicid_present(boot_cpu_physical_apicid)则
1278  打印注释信息("weird, boot CPU (#%d) not listed by the BIOS\n", boot_cpu_physical_apicid)
1280  physid_set(hard_smp_processor_id(), phys_cpu_present_map)
1282  禁用抢占和中断()
调用者
名称描述
native_smp_prepare_cpusPrepare for SMP bootup.*@max_cpus: configured maximum number of CPUs, It is a legacy parameter* for common interface support.