libbomp: match the new bitmap interface for prev/next calls.
authorReto Achermann <reto.achermann@inf.ethz.ch>
Tue, 16 Jun 2015 09:30:17 +0000 (11:30 +0200)
committerReto Achermann <reto.achermann@inf.ethz.ch>
Tue, 16 Jun 2015 09:33:31 +0000 (11:33 +0200)
Signed-off-by: Reto Achermann <reto.achermann@inf.ethz.ch>

lib/bomp_new/bomp_node.c

index 2e1e8cb..f84a626 100644 (file)
@@ -74,7 +74,7 @@ static errval_t bomp_node_init_threads(nodeid_t nodeid,
         node->threads[i].node = node;
         if (core == disp_get_core_id()) {
             /* master thread */
-            core = (coreid_t)bitmap_get_next(bm, core + 1);
+            core = (coreid_t)bitmap_get_next(bm, core);
             continue;
         }
 
@@ -84,7 +84,7 @@ static errval_t bomp_node_init_threads(nodeid_t nodeid,
             return err;
         }
 
-        core = (coreid_t)bitmap_get_next(bm, core + 1);
+        core = (coreid_t)bitmap_get_next(bm, core);
     }
     node->threads_active = 0;
     node->tls = thread_get_tls();