Function report |
Source Code:arch\x86\kernel\cpu\cacheinfo.c |
Create Date:2022-07-28 07:53:56 |
Last Modify:2020-03-16 20:07:28 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:cacheinfo_amd_init_llc_id
Proto:void cacheinfo_amd_init_llc_id(struct cpuinfo_x86 *c, int cpu, u8 node_id)
Type:void
Parameter:
Type | Parameter | Name |
---|---|---|
struct cpuinfo_x86 * | c | |
int | cpu | |
u8 | node_id |
655 | If Not cpuid_edx(0x80000006) Then Return |
658 | If CPU family < 0x17 Then |
660 | per_cpu(cpu_llc_id, cpu) = node_id |
661 | Else if CPU family == 0x17 && x86_model <= 0x1F Then |
666 | per_cpu(cpu_llc_id, cpu) = apicid >> 3 |
667 | Else |
672 | num_sharing_cache = 0 |
673 | llc_index = find_num_cache_leaves(c) - 1 |
676 | If eax Then num_sharing_cache = ( eax >> 14 & 0xfff) + 1 |
679 | If num_sharing_cache Then |
680 | bits = get_count_order(num_sharing_cache) |
682 | per_cpu(cpu_llc_id, cpu) = apicid >> bits |
Name | Describe |
---|---|
amd_get_topology | 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 |
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 |