summaryrefslogtreecommitdiff
path: root/psutil/_psutil_bsd.c
diff options
context:
space:
mode:
authorGiampaolo Rodola <g.rodola@gmail.com>2020-12-24 00:15:24 +0000
committerGiampaolo Rodola <g.rodola@gmail.com>2020-12-24 00:15:24 +0000
commit8f7826cb7d6ce35ecb2a681a4fca09fb5a71668f (patch)
tree457a47a38cdedc43d7828e717fbaecd8c216f6a2 /psutil/_psutil_bsd.c
parent88a017345616cacf718c76980821d26b448f730a (diff)
downloadpsutil-8f7826cb7d6ce35ecb2a681a4fca09fb5a71668f.tar.gz
FreeBSD: move CPU C functions in their own cpu.c module
Diffstat (limited to 'psutil/_psutil_bsd.c')
-rw-r--r--psutil/_psutil_bsd.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/psutil/_psutil_bsd.c b/psutil/_psutil_bsd.c
index dc157e68..69ce6e8e 100644
--- a/psutil/_psutil_bsd.c
+++ b/psutil/_psutil_bsd.c
@@ -63,6 +63,7 @@
#include "_psutil_posix.h"
#ifdef PSUTIL_FREEBSD
+ #include "arch/freebsd/cpu.h"
#include "arch/freebsd/specific.h"
#include "arch/freebsd/sys_socks.h"
#include "arch/freebsd/proc_socks.h"
@@ -1096,8 +1097,8 @@ static PyMethodDef mod_methods[] = {
"Get process resource limits."},
{"proc_setrlimit", psutil_proc_setrlimit, METH_VARARGS,
"Set process resource limits."},
- {"cpu_count_cores", psutil_cpu_count_cores, METH_VARARGS,
- "Return an XML string to determine the number CPU cores."},
+ {"cpu_topology", psutil_cpu_topology, METH_VARARGS,
+ "Return CPU topology as an XML string."},
#endif
{"proc_environ", psutil_proc_environ, METH_VARARGS,
"Return process environment"},