Module: xenomai-forge
Branch: rtdm-api-waitqueues
Commit: 823efeeed450ae7b86fa7e7af50b04f0dc71e417
URL:    
http://git.xenomai.org/?p=xenomai-forge.git;a=commit;h=823efeeed450ae7b86fa7e7af50b04f0dc71e417

Author: Philippe Gerum <r...@xenomai.org>
Date:   Thu Apr 24 17:30:15 2014 +0200

boilerplate/ancillaries: define ONE_BILLION

---

 include/boilerplate/ancillaries.h |    2 ++
 testsuite/latency/latency.c       |    1 -
 testsuite/unit/sched-quota.c      |    2 +-
 3 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/include/boilerplate/ancillaries.h 
b/include/boilerplate/ancillaries.h
index c8b4ec7..9d5818f 100644
--- a/include/boilerplate/ancillaries.h
+++ b/include/boilerplate/ancillaries.h
@@ -43,6 +43,8 @@ struct name_generator {
                .serial = 1,                                            \
        }
 
+#define ONE_BILLION  1000000000
+
 #ifdef __cplusplus
 extern "C" {
 #endif
diff --git a/testsuite/latency/latency.c b/testsuite/latency/latency.c
index 12b90a9..5efc344 100644
--- a/testsuite/latency/latency.c
+++ b/testsuite/latency/latency.c
@@ -19,7 +19,6 @@ RT_TASK latency_task, display_task;
 
 RT_SEM display_sem;
 
-#define ONE_BILLION  1000000000
 #define TEN_MILLION    10000000
 
 unsigned max_relaxed;
diff --git a/testsuite/unit/sched-quota.c b/testsuite/unit/sched-quota.c
index 1347bf7..fef6880 100644
--- a/testsuite/unit/sched-quota.c
+++ b/testsuite/unit/sched-quota.c
@@ -36,10 +36,10 @@
 #include <errno.h>
 #include <error.h>
 #include <boilerplate/time.h>
+#include <boilerplate/ancillaries.h>
 
 #define MAX_THREADS 8
 #define TEST_SECS   1
-#define ONE_BILLION 1000000000UL
 
 static unsigned long long crunch_per_sec, loops_per_sec;
 


_______________________________________________
Xenomai-git mailing list
Xenomai-git@xenomai.org
http://www.xenomai.org/mailman/listinfo/xenomai-git

Reply via email to