diff options
| author | Bjoern B. Brandenburg <bbb@cs.unc.edu> | 2010-02-03 09:51:57 -0500 |
|---|---|---|
| committer | Bjoern B. Brandenburg <bbb@cs.unc.edu> | 2010-02-03 21:55:58 -0500 |
| commit | 8a1912c177e978574250cf80f8a50edf7424b158 (patch) | |
| tree | 23b05f63d1a47ef01667a90703f0b0661f37e969 /include | |
| parent | 1c21007bbcb62829b12dc7271fdbc183c4ca1aa2 (diff) | |
Re-implement non-preemptive section support.
Layered on top of the LITMUS control page.
Diffstat (limited to 'include')
| -rw-r--r-- | include/internal.h | 3 | ||||
| -rw-r--r-- | include/litmus.h | 5 |
2 files changed, 8 insertions, 0 deletions
diff --git a/include/internal.h b/include/internal.h index fc88ef5..07253b7 100644 --- a/include/internal.h +++ b/include/internal.h | |||
| @@ -18,5 +18,8 @@ int __launch_rt_task(rt_fn_t rt_prog, void *rt_arg, | |||
| 18 | } | 18 | } |
| 19 | 19 | ||
| 20 | 20 | ||
| 21 | #define likely(x) __builtin_expect((x), 1) | ||
| 22 | #define unlikely(x) __builtin_expect((x), 0) | ||
| 23 | |||
| 21 | #endif | 24 | #endif |
| 22 | 25 | ||
diff --git a/include/litmus.h b/include/litmus.h index 22376a4..71bcd1a 100644 --- a/include/litmus.h +++ b/include/litmus.h | |||
| @@ -1,7 +1,12 @@ | |||
| 1 | #ifndef LITMUS_H | 1 | #ifndef LITMUS_H |
| 2 | #define LITMUS_H | 2 | #define LITMUS_H |
| 3 | 3 | ||
| 4 | /* Include kernel header. | ||
| 5 | * This is required for the rt_param | ||
| 6 | * and control_page structures. | ||
| 7 | */ | ||
| 4 | #include <litmus/rt_param.h> | 8 | #include <litmus/rt_param.h> |
| 9 | |||
| 5 | #include <sys/types.h> | 10 | #include <sys/types.h> |
| 6 | 11 | ||
| 7 | #include "cycles.h" /* for null_call() */ | 12 | #include "cycles.h" /* for null_call() */ |
