函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:arch\x86\kernel\cpu\amd.c Create Date:2022-07-27 08:58:39
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:On a AMD dual core setup the lower bits of the APIC id distinguish the cores.* Assumes number of cores is a power of two.

函数原型:static void amd_detect_cmp(struct cpuinfo_x86 *c)

返回类型:void

参数:

类型参数名称
struct cpuinfo_x86 *c
393  cpu等于当前cpu ID()
395  bits等于CPUID returned core id bits:
397  Core id: 等于initial_apicid按位与1左移bits位的值减1
399  Physical processor id: 等于initial_apicid右移bits
401  per_cpu(Last level cache ID of each logical CPU , cpu)等于Physical processor id:
调用者
名称描述
init_amd