This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "".
The branch, master has been updated
via 8705e548f330d23173283fcca62f4afb835a6380 (commit)
from eafd83ed1d036a404a18874d80c11d454d2580d3 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit 8705e548f330d23173283fcca62f4afb835a6380
Author: Matias Elo <matias.elo(a)nokia.com>
Date: Fri Aug 18 10:08:17 2017 +0300
helper: test: fix running process/thread tests on single core systems
This patch enables running process and thread validation tests on single
core systems.
Fixes bug: https://bugs.linaro.org/show_bug.cgi?id=2812
Signed-off-by: Matias Elo <matias.elo(a)nokia.com>
Reviewed-by: Bill Fischofer <bill.fischofer(a)linaro.org>
Reviewed-by: Dmitry Eremin-Solenikov <dmitry.ereminsolenikov(a)linaro.org>
Signed-off-by: Maxim Uvarov <maxim.uvarov(a)linaro.org>
diff --git a/helper/test/linux/process.c b/helper/test/linux/process.c
index e08ef868..e1ab8c83 100644
--- a/helper/test/linux/process.c
+++ b/helper/test/linux/process.c
@@ -56,9 +56,10 @@ int main(int argc ODPH_UNUSED, char *argv[] ODPH_UNUSED)
cpu = odp_cpumask_first(&cpu_mask);
printf("the first CPU: %i\n", cpu);
- /* reserve cpu 0 for the control plane so remove it from
- * the default mask */
- odp_cpumask_clr(&cpu_mask, 0);
+ /* If possible, remove CPU 0 from the default mask to reserve it for the
+ * control plane. */
+ if (num_workers > 1)
+ odp_cpumask_clr(&cpu_mask, 0);
num_workers = odp_cpumask_count(&cpu_mask);
(void)odp_cpumask_to_str(&cpu_mask, cpumaskstr, sizeof(cpumaskstr));
printf("new cpu mask: %s\n", cpumaskstr);
diff --git a/helper/test/linux/pthread.c b/helper/test/linux/pthread.c
index 2bec0d17..3422751f 100644
--- a/helper/test/linux/pthread.c
+++ b/helper/test/linux/pthread.c
@@ -56,9 +56,10 @@ int main(int argc ODPH_UNUSED, char *argv[] ODPH_UNUSED)
cpu = odp_cpumask_first(&cpu_mask);
printf("the first CPU: %i\n", cpu);
- /* reserve cpu 0 for the control plane so remove it from
- * the default mask */
- odp_cpumask_clr(&cpu_mask, 0);
+ /* If possible, remove CPU 0 from the default mask to reserve it for the
+ * control plane. */
+ if (num_workers > 1)
+ odp_cpumask_clr(&cpu_mask, 0);
num_workers = odp_cpumask_count(&cpu_mask);
(void)odp_cpumask_to_str(&cpu_mask, cpumaskstr, sizeof(cpumaskstr));
printf("new cpu mask: %s\n", cpumaskstr);
diff --git a/helper/test/odpthreads.c b/helper/test/odpthreads.c
index 219e1b65..ab890cb3 100644
--- a/helper/test/odpthreads.c
+++ b/helper/test/odpthreads.c
@@ -126,9 +126,10 @@ int main(int argc, char *argv[])
cpu = odp_cpumask_first(&cpu_mask);
printf("the first CPU: %i\n", cpu);
- /* reserve cpu 0 for the control plane so remove it from
- * the default mask */
- odp_cpumask_clr(&cpu_mask, 0);
+ /* If possible, remove CPU 0 from the default mask to reserve it for the
+ * control plane. */
+ if (num_workers > 1)
+ odp_cpumask_clr(&cpu_mask, 0);
num_workers = odp_cpumask_count(&cpu_mask);
(void)odp_cpumask_to_str(&cpu_mask, cpumaskstr, sizeof(cpumaskstr));
printf("new cpu mask: %s\n", cpumaskstr);
-----------------------------------------------------------------------
Summary of changes:
helper/test/linux/process.c | 7 ++++---
helper/test/linux/pthread.c | 7 ++++---
helper/test/odpthreads.c | 7 ++++---
3 files changed, 12 insertions(+), 9 deletions(-)
hooks/post-receive
--
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "".
The branch, api-next has been updated
discards 7bb364313bfeed59556e167bfa848e9ea6f52669 (commit)
discards 0bc12ffcf7898515c74a5567b832dcfc913d831a (commit)
discards 22ec8f3aefe9b2c92020cd9aa36e9f8e5a380799 (commit)
discards 2119e4548281ed50fecc5fe9f5bddcaa2adee2de (commit)
This update discarded existing revisions and left the branch pointing at
a previous point in the repository history.
* -- * -- N (3547226b19e6982bf74fc8c258b89db2c5f6a39c)
\
O -- O -- O (7bb364313bfeed59556e167bfa848e9ea6f52669)
The removed revisions are not necessarily gone - if another reference
still refers to them they will stay in the repository.
No new revisions were added by this update.
Summary of changes:
.../include/odp_classification_internal.h | 7 +++++++
.../include/odp_schedule_scalable_ordered.h | 9 +++++++++
platform/linux-generic/odp_classification.c | 15 +++++----------
platform/linux-generic/odp_queue_scalable.c | 2 +-
platform/linux-generic/odp_schedule_scalable.c | 2 +-
.../linux-generic/odp_schedule_scalable_ordered.c | 19 +++++++++----------
6 files changed, 32 insertions(+), 22 deletions(-)
hooks/post-receive
--