Changeset 7cf2ec6f in rtems


Ignore:
Timestamp:
Jun 6, 2013, 1:42:47 PM (6 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
4.11, master
Children:
18e2fbe7
Parents:
2d2352b
git-author:
Sebastian Huber <sebastian.huber@…> (06/06/13 13:42:47)
git-committer:
Sebastian Huber <sebastian.huber@…> (06/07/13 15:06:43)
Message:

smp: Set state PER_CPU_STATE_UP on main processor

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpukit/score/src/smp.c

    r2d2352b r7cf2ec6f  
    151151
    152152  for ( cpu = 0 ; cpu < ncpus ; ++cpu ) {
     153    Per_CPU_Control *per_cpu = &_Per_CPU_Information[ cpu ];
     154
    153155    if ( cpu != self ) {
    154       _Per_CPU_Change_state(
    155         &_Per_CPU_Information[ cpu ],
    156         PER_CPU_STATE_BEGIN_MULTITASKING
    157       );
     156      _Per_CPU_Change_state( per_cpu, PER_CPU_STATE_BEGIN_MULTITASKING );
     157    } else {
     158
     159      _Per_CPU_Change_state( per_cpu, PER_CPU_STATE_UP );
    158160    }
    159161  }
Note: See TracChangeset for help on using the changeset viewer.