diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2013-06-14 14:00:38 +0200 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2013-07-17 13:09:49 +0200 |
commit | 39e51758c86754cef5ba4521c0c36578521f73d0 (patch) | |
tree | a87255c5c0592b876106da50b939dedd471b7d5a /testsuites/smptests/smplock01 | |
parent | smp: Delete RTEMS_BSP_SMP_CONTEXT_SWITCH_NECESSARY (diff) | |
download | rtems-39e51758c86754cef5ba4521c0c36578521f73d0.tar.bz2 |
smp: Add and use _CPU_SMP_Get_current_processor()
Add and use _SMP_Get_current_processor() and
rtems_smp_get_current_processor().
Delete bsp_smp_interrupt_cpu().
Change type of current processor index from int to uint32_t to match
_SMP_Processor_count type.
Diffstat (limited to 'testsuites/smptests/smplock01')
-rw-r--r-- | testsuites/smptests/smplock01/init.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/testsuites/smptests/smplock01/init.c b/testsuites/smptests/smplock01/init.c index 2fcc507698..ed578cbe21 100644 --- a/testsuites/smptests/smplock01/init.c +++ b/testsuites/smptests/smplock01/init.c @@ -298,8 +298,8 @@ static void run_tests( static void task(rtems_task_argument arg) { global_context *ctx = (global_context *) arg; - int cpu_count = (int) rtems_smp_get_processor_count(); - int cpu_self = rtems_smp_get_current_processor(); + uint32_t cpu_count = rtems_smp_get_processor_count(); + uint32_t cpu_self = rtems_smp_get_current_processor(); rtems_status_code sc; barrier_state bs = BARRIER_STATE_INITIALIZER; @@ -312,9 +312,9 @@ static void task(rtems_task_argument arg) static void test(void) { global_context *ctx = &context; - int cpu_count = (int) rtems_smp_get_processor_count(); - int cpu_self = rtems_smp_get_current_processor(); - int cpu; + uint32_t cpu_count = rtems_smp_get_processor_count(); + uint32_t cpu_self = rtems_smp_get_current_processor(); + uint32_t cpu; int test; rtems_status_code sc; barrier_state bs = BARRIER_STATE_INITIALIZER; @@ -356,7 +356,7 @@ static void test(void) sum += local_counter; printf( - "\tprocessor %i, local counter %lu\n", + "\tprocessor %" PRIu32 ", local counter %lu\n", cpu, local_counter ); |