1
1

Cleanup (again) the solaris topology code in hwloc...sigh.

This commit was SVN r28294.
Этот коммит содержится в:
Ralph Castain 2013-04-06 14:45:32 +00:00
родитель ec00fa3132
Коммит 3bfa53eb91

Просмотреть файл

@ -197,7 +197,6 @@ hwloc_solaris_get_thisthread_cpubind(hwloc_topology_t topology, hwloc_bitmap_t h
static int
hwloc_solaris_set_sth_membind(hwloc_topology_t topology, idtype_t idtype, id_t id, hwloc_const_nodeset_t nodeset, hwloc_membind_policy_t policy, int flags)
{
processorid_t binding;
int depth;
int n, i;
@ -222,15 +221,6 @@ hwloc_solaris_set_sth_membind(hwloc_topology_t topology, idtype_t idtype, id_t i
}
n = hwloc_get_nbobjs_by_depth(topology, depth);
/* first check if processor_bind() was used to bind to a single processor rather than to an lgroup */
if ( processor_bind(idtype, id, PBIND_QUERY, &binding) == 0 && binding != PBIND_NONE ) {
hwloc_bitmap_only(hwloc_set, binding);
return 0;
}
/* if not, check lgroups */
for (i = 0; i < n; i++) {
hwloc_obj_t obj = hwloc_get_obj_by_depth(topology, depth, i);
if (hwloc_bitmap_isset(nodeset, obj->os_index)) {