From: Brice Goglin Date: Wed, 18 Dec 2013 18:31:03 +0000 (+0100) Subject: utils: fix cpubind support checks X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=e8d3ccda4e346821de6497fa7059d5a3cb755d2a;p=people%2Fandrewcoop%2Fhwloc.git utils: fix cpubind support checks --- diff --git a/utils/hwloc-ps.c b/utils/hwloc-ps.c index 04c42a70..7e9df5f0 100644 --- a/utils/hwloc-ps.c +++ b/utils/hwloc-ps.c @@ -142,7 +142,7 @@ int main(int argc, char *argv[]) support = hwloc_topology_get_support(topology); - if (!support->cpubind->get_thisproc_cpubind) + if (!support->cpubind->get_proc_cpubind) goto out_with_topology; topocpuset = hwloc_topology_get_topology_cpuset(topology); diff --git a/utils/lstopo.c b/utils/lstopo.c index 8dd3501b..7956289d 100644 --- a/utils/lstopo.c +++ b/utils/lstopo.c @@ -109,7 +109,7 @@ static void add_process_objects(hwloc_topology_t topology) support = hwloc_topology_get_support(topology); - if (!support->cpubind->get_thisproc_cpubind) + if (!support->cpubind->get_proc_cpubind) return; dir = opendir("/proc");