summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Belopuhov <mikeb@cvs.openbsd.org>2016-11-11 18:59:10 +0000
committerMike Belopuhov <mikeb@cvs.openbsd.org>2016-11-11 18:59:10 +0000
commit7a36b8913e0188a2bea960f56b9c84197ede86f0 (patch)
treee88b49dbf22648c8c1234ac4e52ce99365a6cf59
parentddbc0cbc4f750587926b35b597bd3c1a0233d951 (diff)
Export p_cpuid via sysctl for all processes; ok guenther
-rw-r--r--sys/kern/kern_sysctl.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/kern/kern_sysctl.c b/sys/kern/kern_sysctl.c
index 27b53c83382..3d71d8851cd 100644
--- a/sys/kern/kern_sysctl.c
+++ b/sys/kern/kern_sysctl.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: kern_sysctl.c,v 1.319 2016/11/07 00:26:32 guenther Exp $ */
+/* $OpenBSD: kern_sysctl.c,v 1.320 2016/11/11 18:59:09 mikeb Exp $ */
/* $NetBSD: kern_sysctl.c,v 1.17 1996/05/20 17:49:05 mrg Exp $ */
/*-
@@ -1614,7 +1614,7 @@ fill_kproc(struct process *pr, struct kinfo_proc *ki, struct proc *p,
ki->p_ustime_usec = st.tv_nsec/1000;
#ifdef MULTIPROCESSOR
- if (isthread && p->p_cpu != NULL)
+ if (p->p_cpu != NULL)
ki->p_cpuid = CPU_INFO_UNIT(p->p_cpu);
#endif
}