| Function report | 
| 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 activity | Download SCCT | Chinese | 
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 | 
| 1458 | apicid = boot_cpu_physical_apicid | 
| 1459 | cpu = hard_smp_processor_id() | 
| 1464 | If cpu_present_to_apicid(0) == BAD_APICID && apic_id_valid(apicid) Then generic_processor_info(apicid, boot_cpu_apic_version) | 
| 1469 | If Not num_processors Then num_processors = 1 | 
| 1473 | i = If setup_max_cpus Else 1 | 
| 1474 | If setup_possible_cpus == -1 Then | 
| 1483 | Else possible = setup_possible_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 | 
| 1499 | pr_warn("%d Processors exceeds max_cpus limit of %u\n", possible, setup_max_cpus) | 
| 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) | 
| Source code conversion tool public plug-in interface | X | 
|---|---|
| Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion |