diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2014-04-10 10:58:27 +0200 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2014-04-11 08:52:54 +0200 |
commit | 4bc8d2e71774452e66c619dad98ccab6db8a2324 (patch) | |
tree | 9bcbf057fa8bd77816542cab020b9348ba516062 /testsuites/smptests/smp01 | |
parent | score: Statically initialize IO manager (diff) | |
download | rtems-4bc8d2e71774452e66c619dad98ccab6db8a2324.tar.bz2 |
rtems: Rename rtems_smp_get_processor_count()
Rename rtems_smp_get_processor_count() in rtems_get_processor_count().
Make rtems_get_processor_count() a function in uni-processor
configurations to enable ABI compatibility with SMP configurations.
Diffstat (limited to 'testsuites/smptests/smp01')
-rw-r--r-- | testsuites/smptests/smp01/init.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/testsuites/smptests/smp01/init.c b/testsuites/smptests/smp01/init.c index 91a6e4056c..8439293d95 100644 --- a/testsuites/smptests/smp01/init.c +++ b/testsuites/smptests/smp01/init.c @@ -48,12 +48,12 @@ rtems_task Init( locked_print_initialize(); /* Initialize the TaskRan array */ - for ( i=0; i<rtems_smp_get_processor_count() ; i++ ) { + for ( i=0; i<rtems_get_processor_count() ; i++ ) { TaskRan[i] = false; } /* Create and start tasks for each processor */ - for ( i=0; i< rtems_smp_get_processor_count() ; i++ ) { + for ( i=0; i< rtems_get_processor_count() ; i++ ) { if ( i != cpu_self ) { ch = '0' + i; @@ -78,7 +78,7 @@ rtems_task Init( /* Wait on the all tasks to run */ while (1) { allDone = true; - for ( i=0; i<rtems_smp_get_processor_count() ; i++ ) { + for ( i=0; i<rtems_get_processor_count() ; i++ ) { if ( i != cpu_self && TaskRan[i] == false) allDone = false; } |