Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:arch\x86\kernel\smpboot.c Create Date:2022-07-28 08:24:53
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:pu_possible_mask should be static, it cannot change as cpu's* are onlined, or offlined. The reason is per-cpu data-structures* are allocated by some modules at init time, and dont expect to* do this dynamically on cpu arrival/departure.

Proto:__init void prefill_possible_map(void)

Type:void

Parameter:Nothing

1456  If Not num_processors Then
1457  If boot_cpu_has(Onboard APIC ) Then
1461  pr_warn("Boot CPU (id %d) not listed by BIOS\n", cpu)
1469  If Not num_processors Then num_processors = 1
1473  i = If setup_max_cpus Else 1
1474  If setup_possible_cpus == -1 Then
1475  possible = num_processors
1480  If possible > i Then possible = i
1483  Else possible = setup_possible_cpus
1486  al number of cpus in this system (may exceed NR_CPUS) = max_t - return maximum of two values, using the specified type*@type: data type to use*@x: first value*@y: second value(int, possible, num_processors + disabled_cpus)
1489  If possible > nr_cpu_ids Then
1490  pr_warn("%d Processors exceeds NR_CPUS limit of %u\n", possible, nr_cpu_ids)
1492  possible = nr_cpu_ids
1498  If possible > i Then
1499  pr_warn("%d Processors exceeds max_cpus limit of %u\n", possible, setup_max_cpus)
1501  possible = i
1504  nr_cpu_ids = possible
1506  pr_info("Allowing %d CPUs, %d hotplug CPUs\n", possible, max_t - return maximum of two values, using the specified type*@type: data type to use*@x: first value*@y: second value(int, possible - num_processors, 0))
1509  reset_cpu_possible_mask()
1511  When i < possible cycle set_cpu_possible(i, true)