projects
/
barrelfish
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
54da43b
)
libbomp: match the new bitmap interface for prev/next calls.
author
Reto Achermann
<reto.achermann@inf.ethz.ch>
Tue, 16 Jun 2015 09:30:17 +0000 (11:30 +0200)
committer
Reto 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
patch
|
blob
|
history
diff --git
a/lib/bomp_new/bomp_node.c
b/lib/bomp_new/bomp_node.c
index
2e1e8cb
..
f84a626
100644
(file)
--- a/
lib/bomp_new/bomp_node.c
+++ b/
lib/bomp_new/bomp_node.c
@@
-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();