diff options
author | Christian Göttsche <cgzones@googlemail.com> | 2021-06-13 11:29:39 +0200 |
---|---|---|
committer | Benny Baumann <BenBE@geshi.org> | 2021-07-18 07:50:48 +0200 |
commit | 1fb0c720fed4e93f6cfd6cf709a7d7028c3f2836 (patch) | |
tree | d16de102189cd996226ced71bf839825cb668462 /Affinity.c | |
parent | adcedf87f5ac09e640179d8df3a4da1d9cb9f9a9 (diff) |
Enable affinity support for non-Linux
sched_getaffinity() and sched_setaffinity() are also available on BSDs.
Remove the Linux restraint.
Diffstat (limited to 'Affinity.c')
-rw-r--r-- | Affinity.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -22,7 +22,7 @@ in the source distribution for its full text. #else #define HTOP_HWLOC_CPUBIND_FLAG HWLOC_CPUBIND_PROCESS #endif -#elif defined(HAVE_LINUX_AFFINITY) +#elif defined(HAVE_AFFINITY) #include <sched.h> #endif @@ -84,7 +84,7 @@ bool Affinity_set(Process* proc, Arg arg) { return ok; } -#elif defined(HAVE_LINUX_AFFINITY) +#elif defined(HAVE_AFFINITY) Affinity* Affinity_get(const Process* proc, ProcessList* pl) { cpu_set_t cpuset; |