summaryrefslogtreecommitdiff
path: root/samples
diff options
context:
space:
mode:
authorPeter Mitsis <peter.mitsis@windriver.com>2016-02-10 16:21:06 -0500
committerGerrit Code Review <gerrit@zephyrproject.org>2016-02-11 14:13:05 +0000
commit76357932d83cf1100cf33e3edc9f5547436034b2 (patch)
tree2f2221f28ab4a3eff6f32ba0fbc881b9eeb0e23a /samples
parentb436fa16b588af27b6e17cdcba3871ffa618efbe (diff)
arm: Enable support for sys_thread_busy_wait()
It is now safe to enable sys_thread_busy_wait() for ARM as an earlier patch has fixed the build system to link against the correct intrinsics library. Change-Id: Ib5ed036d996461b91f372b2b3e8f597a925d3292 Signed-off-by: Peter Mitsis <peter.mitsis@windriver.com>
Diffstat (limited to 'samples')
-rw-r--r--samples/nanokernel/test/test_context/src/context.c10
1 files changed, 0 insertions, 10 deletions
diff --git a/samples/nanokernel/test/test_context/src/context.c b/samples/nanokernel/test/test_context/src/context.c
index 8f88057e5..3dd4fd9c2 100644
--- a/samples/nanokernel/test/test_context/src/context.c
+++ b/samples/nanokernel/test/test_context/src/context.c
@@ -611,7 +611,6 @@ struct timeout_order_data timeout_order_data[] = {
#define NUM_TIMEOUT_FIBERS ARRAY_SIZE(timeout_order_data)
static char __stack timeout_stacks[NUM_TIMEOUT_FIBERS][FIBER_STACKSIZE];
-#ifndef CONFIG_ARM
/* a fiber busy waits, then reports through a fifo */
static void test_fiber_busy_wait(int ticks, int unused)
{
@@ -639,7 +638,6 @@ static void test_fiber_busy_wait(int ticks, int unused)
nano_fiber_sem_give(&reply_timeout);
}
-#endif
/* a fiber sleeps and times out, then reports through a fifo */
static void test_fiber_sleep(int timeout, int arg2)
@@ -676,12 +674,6 @@ static int test_timeout(void)
int ii;
struct timeout_order_data *data;
-/*
- * sys_thread_busy_wait() is currently unsupported for ARM
- */
-
-#ifndef CONFIG_ARM
-
/* test sys_thread_busy_wait() */
TC_PRINT("Testing sys_thread_busy_wait()\n");
@@ -697,8 +689,6 @@ static int test_timeout(void)
return TC_FAIL;
}
-#endif /* CONFIG_ARM */
-
/* test fiber_sleep() */
TC_PRINT("Testing fiber_sleep()\n");