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/smp08 | |
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/smp08')
-rw-r--r-- | testsuites/smptests/smp08/init.c | 6 | ||||
-rw-r--r-- | testsuites/smptests/smp08/tasks.c | 4 |
2 files changed, 5 insertions, 5 deletions
diff --git a/testsuites/smptests/smp08/init.c b/testsuites/smptests/smp08/init.c index 0c7740b32e..897fe98a36 100644 --- a/testsuites/smptests/smp08/init.c +++ b/testsuites/smptests/smp08/init.c @@ -19,13 +19,13 @@ void PrintTaskInfo( rtems_time_of_day *_tb ) { - int cpu_num; + uint32_t cpu_num; - cpu_num = bsp_smp_processor_id(); + cpu_num = rtems_smp_get_current_processor(); /* Print the cpu number and task name */ locked_printf( - " CPU %d running task %s - rtems_clock_get_tod " + " CPU %" PRIu32 " running task %s - rtems_clock_get_tod " "%02" PRId32 ":%02" PRId32 ":%02" PRId32 " %02" PRId32 "/%02" PRId32 "/%04" PRId32 "\n", cpu_num, diff --git a/testsuites/smptests/smp08/tasks.c b/testsuites/smptests/smp08/tasks.c index 762120c78f..96d25de86e 100644 --- a/testsuites/smptests/smp08/tasks.c +++ b/testsuites/smptests/smp08/tasks.c @@ -21,7 +21,7 @@ rtems_task Test_task( rtems_time_of_day time; uint32_t task_index; rtems_status_code status; - int cpu_num; + uint32_t cpu_num; char name[5]; char *p; @@ -34,7 +34,7 @@ rtems_task Test_task( for ( ; ; ) { /* Get the CPU Number */ - cpu_num = bsp_smp_processor_id(); + cpu_num = rtems_smp_get_current_processor(); status = rtems_clock_get_tod( &time ); if ( time.second >= 35 ) { |