Function report |
Source Code:arch\x86\kernel\cpu\common.c |
Create Date:2022-07-28 07:55:02 |
| Last Modify:2020-03-16 20:28:31 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:detect_num_cpu_cores
Proto:void detect_num_cpu_cores(struct cpuinfo_x86 *c)
Type:void
Parameter:
| Type | Parameter | Name |
|---|---|---|
| struct cpuinfo_x86 * | c |
| 659 | cpuid returned max cores value: = 1 |
| 660 | If Not IS_ENABLED(CONFIG_FOO) evaluates to 1 if CONFIG_FOO is set to 'y' or 'm',* 0 otherwise.(CONFIG_SMP) || Maximum supported CPUID level, -1=no CPUID: < 4 Then Return |
| 663 | cpuid_count(4, 0, & eax, & ebx, & ecx, & edx) |
| 664 | If eax & 0x1f Then cpuid returned max cores value: = (eax >> 26) + 1 |
| Name | Describe |
|---|---|
| init_intel | |
| init_centaur | |
| init_zhaoxin |
| 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 |