aboutsummaryrefslogtreecommitdiff
path: root/sys/compat/linux
diff options
context:
space:
mode:
authorEdward Tomasz Napierala <trasz@FreeBSD.org>2020-08-24 14:13:20 +0000
committerEdward Tomasz Napierala <trasz@FreeBSD.org>2020-08-24 14:13:20 +0000
commit76c472f8bbd18b07f5d31835a044d0759e26e50d (patch)
treee2ad7870a05d0729dcc6c1d2e978812761c44bc0 /sys/compat/linux
parentfa0130a74eeaf99b398f2817738d54555de22da1 (diff)
Notes
Diffstat (limited to 'sys/compat/linux')
-rw-r--r--sys/compat/linux/linux_misc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/compat/linux/linux_misc.c b/sys/compat/linux/linux_misc.c
index d635cc84ddc0..5e24808a8082 100644
--- a/sys/compat/linux/linux_misc.c
+++ b/sys/compat/linux/linux_misc.c
@@ -2829,7 +2829,7 @@ linux_getcpu(struct thread *td, struct linux_getcpu_args *args)
cpu = td->td_oncpu; /* Make sure it doesn't change during copyout(9) */
error = 0;
- node = 0; /* XXX: Fake NUMA node 0 for now */
+ node = cpuid_to_pcpu[cpu]->pc_domain;
if (args->cpu != NULL)
error = copyout(&cpu, args->cpu, sizeof(l_int));