Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:arch\x86\kernel\apic\x2apic_uv_x.c Create Date:2022-07-28 08:33:39
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:set_x2apic_bits

Proto:static void set_x2apic_bits(void)

Type:void

Parameter:Nothing

204  cpuid(0, & eax, & ebx, & ecx, & edx)
205  If eax < 0xb Then
206  pr_info("UV: CPU does not have CPUID.11\n")
207  Return
210  cpuid_count(0xb, Leaf 0xb SMT level , & eax, & ebx, & ecx, & edx)
211  If ebx == 0 || LEAFB_SUBTYPE(ecx) != SMT_TYPE Then
212  pr_info("UV: CPUID.11 not implemented\n")
213  Return
216  sid_shift = BITS_SHIFT_NEXT_LEVEL(eax)
217  sub_index = 1
218  Do
219  cpuid_count(0xb, sub_index, & eax, & ebx, & ecx, & edx)
220  If LEAFB_SUBTYPE(ecx) == CORE_TYPE Then
222  Break
224  sub_index++
225  When LEAFB_SUBTYPE(ecx) != Leaf 0xb sub-leaf types cycle
227  apicid_shift = 0
228  apicid_mask = ~(-1 << sid_shift)
229  aka pnode_shift for UV1/2/3 = sid_shift
Caller
NameDescribe
early_get_apic_socketid_shift