libhsakmt: Fix missing apicid in topology

While adding x2APIC support, apicid for non-x2apic was missing out by
mistake.



Change-Id: I25eed362c035c0e9fb9ea948899c49f70311f269
Signed-off-by: Amber Lin <Amber.Lin@amd.com>


[ROCm/ROCR-Runtime commit: cfa47ac1f9]
This commit is contained in:
Amber Lin
2019-03-11 13:02:56 -04:00
parent 1efba15c34
commit bc0bc878f4
+1
View File
@@ -1242,6 +1242,7 @@ static HSAKMT_STATUS topology_create_temp_cpu_cache_list(void **temp_cpu_ci_list
} else {
eax = 0x1;
cpuid(&eax, &ebx, &ecx, &edx);
this_cpu->apicid = (ebx >> 24) & 0xff;
this_cpu->max_num_apicid = (ebx >> 16) & 0x0FF;
}
this_cpu->num_caches = cpuid_find_num_cache_leaves(cpuid_op_cache);