diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2014-04-10 11:02:52 +0200 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2014-04-11 08:52:54 +0200 |
commit | cb5eaddf95d348c1c74aad3997fe012af5e7b02f (patch) | |
tree | 6576466530b1be24fbc6fc4390a77d3481362feb /testsuites/smptests/smpsignal01 | |
parent | rtems: Rename rtems_smp_get_processor_count() (diff) | |
download | rtems-cb5eaddf95d348c1c74aad3997fe012af5e7b02f.tar.bz2 |
rtems: Rename rtems_smp_get_current_processor()
Rename rtems_smp_get_current_processor() in
rtems_get_current_processor(). Make rtems_get_current_processor() a
function in uni-processor configurations to enable ABI compatibility
with SMP configurations.
Diffstat (limited to 'testsuites/smptests/smpsignal01')
-rw-r--r-- | testsuites/smptests/smpsignal01/init.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/testsuites/smptests/smpsignal01/init.c b/testsuites/smptests/smpsignal01/init.c index 1aaa70090a..af524bf9b1 100644 --- a/testsuites/smptests/smpsignal01/init.c +++ b/testsuites/smptests/smpsignal01/init.c @@ -86,14 +86,14 @@ static void signal_send(test_context *ctx, test_state new_state) static void check_consumer_processor(const test_context *ctx) { rtems_test_assert( - ctx->consumer_processor == rtems_smp_get_current_processor() + ctx->consumer_processor == rtems_get_current_processor() ); } static void check_producer_processor(const test_context *ctx) { rtems_test_assert( - ctx->producer_processor == rtems_smp_get_current_processor() + ctx->producer_processor == rtems_get_current_processor() ); } @@ -101,7 +101,7 @@ static void producer(rtems_task_argument arg) { test_context *ctx = (test_context *) arg; - ctx->producer_processor = rtems_smp_get_current_processor(); + ctx->producer_processor = rtems_get_current_processor(); rtems_test_assert(ctx->consumer_processor != ctx->producer_processor); @@ -126,7 +126,7 @@ static void test(void) rtems_mode mode; ctx->consumer = rtems_task_self(); - ctx->consumer_processor = rtems_smp_get_current_processor(); + ctx->consumer_processor = rtems_get_current_processor(); sc = rtems_signal_catch(signal_handler, RTEMS_DEFAULT_MODES); rtems_test_assert(sc == RTEMS_SUCCESSFUL); |