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/smppsxsignal01/init.c | |
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/smppsxsignal01/init.c')
-rw-r--r-- | testsuites/smptests/smppsxsignal01/init.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/testsuites/smptests/smppsxsignal01/init.c b/testsuites/smptests/smppsxsignal01/init.c index 61eaec1667..b954cbdf08 100644 --- a/testsuites/smptests/smppsxsignal01/init.c +++ b/testsuites/smptests/smppsxsignal01/init.c @@ -82,14 +82,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() ); } @@ -97,7 +97,7 @@ static void *producer(void *arg) { test_context *ctx = 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); @@ -120,7 +120,7 @@ static void test(void) void *producer_status; ctx->consumer = pthread_self(); - ctx->consumer_processor = rtems_smp_get_current_processor(); + ctx->consumer_processor = rtems_get_current_processor(); memset(&new_action, 0, sizeof(new_action)); new_action.sa_handler = signal_handler; |