Ignore:
Timestamp:
Jun 14, 2013, 12:26:34 PM (7 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
4.11, 5, master
Children:
477259c
Parents:
5c78940d
git-author:
Sebastian Huber <sebastian.huber@…> (06/14/13 12:26:34)
git-committer:
Sebastian Huber <sebastian.huber@…> (06/14/13 14:26:07)
Message:

score: Rename rtems_smp_get_number_of_processors()

Rename in rtems_smp_get_processor_count(). Always provide
<rtems/score/smp.h> and <rtems/rtems/smp.h>. Add
_SMP_Get_processor_count(). This function will be a compile time
constant defined to be one on uni-processor configurations. This allows
iterations over all processors without overhead on uni-processor
configurations.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • testsuites/smptests/smpatomic01/init.c

    r5c78940d redde99b  
    3636
    3737  /* Initialize the TaskRan array */
    38   for ( i=0; i<rtems_smp_get_number_of_processors() ; i++ ) {
     38  for ( i=0; i<rtems_smp_get_processor_count() ; i++ ) {
    3939    TaskRan[i] = false;
    4040  }
    4141
    4242  /* Create and start tasks for each processor */
    43   for ( i=1; i< rtems_smp_get_number_of_processors() ; i++ ) {
     43  for ( i=1; i< rtems_smp_get_processor_count() ; i++ ) {
    4444    ch = '0' + i;
    4545
     
    6161  while (1) {
    6262    allDone = true;
    63     for ( i=1; i<rtems_smp_get_number_of_processors() ; i++ ) {
     63    for ( i=1; i<rtems_smp_get_processor_count() ; i++ ) {
    6464      if (TaskRan[i] == false)
    6565        allDone = false;
Note: See TracChangeset for help on using the changeset viewer.