getcpu(): expose correct NUMA id

This commit is contained in:
Balazs Gerofi
2016-11-26 09:29:09 +09:00
parent f634a750c5
commit c7db296e1b

View File

@ -7066,7 +7066,7 @@ SYSCALL_DECLARE(getcpu)
const uintptr_t cpup = ihk_mc_syscall_arg0(ctx);
const uintptr_t nodep = ihk_mc_syscall_arg1(ctx);
const int cpu = ihk_mc_get_processor_id();
const int node = 0;
const int node = ihk_mc_get_numa_id();
int error;
if (cpup) {