函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:Fix up cpu_core_id for pre-F17h systems to be in the* [0 .. cores_per_node - 1] range. Not really needed but* kept so as not to break existing setups.

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

返回类型:void

参数:

类型参数名称
struct cpuinfo_x86 *c
316  如果CPU family 大于等于0x17则返回
319  cus_per_node等于cpuid returned max cores value: des_per_socket: Stores the number of nodes per socket.* Refer to Fam15h Models 00-0fh BKDG - CPUID Fn8000_001E_ECX* Node Identifiers[10:8]
320  Core id: 取模等于cus_per_node
调用者
名称描述
amd_get_topologyFixup 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