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]
Tá an tiomantas seo le fáil i:
Amber Lin tiomanta 2019-03-11 13:05:37 -04:00
1 tuismitheoir 1efba15c34
tiomantas bc0bc878f4
1 comhad athraithe
+1
+1
Féach ar an gComhad
@@ -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);