Function report |
Source Code:arch\x86\kernel\cpu\common.c |
Create Date:2022-07-28 07:55:07 |
Last Modify:2020-03-16 20:28:31 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:cpu_detect
Proto:void cpu_detect(struct cpuinfo_x86 *c)
Type:void
Parameter:
Type | Parameter | Name |
---|---|---|
struct cpuinfo_x86 * | c |
803 | cpuid(0x00000000, (unsignedint * ) & Maximum supported CPUID level, -1=no CPUID: , (unsignedint * ) & x86_vendor_id[0], (unsignedint * ) & x86_vendor_id[8], (unsignedint * ) & x86_vendor_id[4]) |
808 | CPU family = 4 |
810 | If Maximum supported CPUID level, -1=no CPUID: >= 0x00000001 Then |
814 | CPU family = x86_family(tfms) |
816 | x86_stepping = x86_stepping(tfms) |
818 | If cap0 & 1 << 19 Then |
819 | x86_clflush_size = ( misc >> 8 & 0xff) * 8 |
820 | In bytes = x86_clflush_size |
Name | Describe |
---|---|
early_identify_cpu | Do minimum CPU detection early.* Fields really needed: vendor, cpuid_level, family, model, mask,* cache alignment.* The others are not touched to avoid unwanted side effects.* WARNING: this function is only called on the boot CPU. Don't add code |
generic_identify |
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 |