diff options
author | Hisham <hisham@gobolinux.org> | 2016-02-14 19:57:29 -0200 |
---|---|---|
committer | Hisham <hisham@gobolinux.org> | 2016-02-14 19:57:29 -0200 |
commit | 474d26cea8ad31e77722f81ba801b2c29783e947 (patch) | |
tree | edb8bb8928e96a04dc62ce42a23a92a32c7c2fb5 /Affinity.h | |
parent | 35657208d7dc6262c477f5d9d5626dba5d8dc05c (diff) |
Portable affinity using hwloc
Diffstat (limited to 'Affinity.h')
-rw-r--r-- | Affinity.h | 9 |
1 files changed, 7 insertions, 2 deletions
@@ -10,7 +10,12 @@ in the source distribution for its full text. */ #ifdef HAVE_LIBHWLOC -#elif HAVE_NATIVE_AFFINITY +#if __linux__ +#define HTOP_HWLOC_CPUBIND_FLAG HWLOC_CPUBIND_THREAD +#else +#define HTOP_HWLOC_CPUBIND_FLAG HWLOC_CPUBIND_PROCESS +#endif +#elif HAVE_LINUX_AFFINITY #endif #include "Process.h" @@ -36,7 +41,7 @@ Affinity* Affinity_get(Process* proc, ProcessList* pl); bool Affinity_set(Process* proc, Affinity* this); -#elif HAVE_NATIVE_AFFINITY +#elif HAVE_LINUX_AFFINITY Affinity* Affinity_get(Process* proc, ProcessList* pl); |