函数源码

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source File:arch\x86\kernel\smpboot.c Create Date:2022-07-27 09:24:10
首页 Copyright©Brick

369
370
371
372
373
374
375
376
377
378
379
void __init smp_store_boot_cpu_info(void)
{
    int id = 0; /* CPU 0 */
    struct cpuinfo_x86 *c = &cpu_data(id);
 
    *c = boot_cpu_data;
    c->cpu_index = id;
    topology_update_package_map(c->phys_proc_id, id);
    topology_update_die_map(c->cpu_die_id, id);
    c->initialized = true;
}