Function report |
Source Code:arch\x86\kernel\cpu\amd.c |
Create Date:2022-07-28 07:58:13 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:Fixup core topology information for* (1) AMD multi-node processors* Assumption: Number of cores in each internal node is the same.* (2) AMD processors supporting compute units
Proto:static void amd_get_topology(struct cpuinfo_x86 *c)
Type:void
Parameter:
Type | Parameter | Name |
---|---|---|
struct cpuinfo_x86 * | c |
339 | cpu = smp_processor_id() |
342 | If boot_cpu_has(Topology extensions CPUID leafs ) Then |
350 | If CPU family == 0x15 Then cu_id = ebx & 0xff |
353 | If CPU family >= 0x17 Then |
364 | err = Check for extended topology enumeration cpuid leaf, and if it* exists, use it for populating initial_apicid and cpu topology* detection. |
365 | If Not err Then CPUID returned core id bits: = get_count_order(cpuid returned max cores value: ) |
368 | cacheinfo_amd_init_llc_id(c, cpu, node_id) |
370 | Else if cpu_has(c, NodeId MSR ) Then |
373 | rdmsrl(MSR_FAM10H_NODE_ID, value) |
377 | Else Return |
381 | set_cpu_cap(c, AMD multi-node processor ) |
Name | Describe |
---|---|
init_amd |
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 |