Changeset c4ff027 in rtems


Ignore:
Timestamp:
Feb 18, 2014, 12:30:28 PM (5 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
4.11, master
Children:
8a65a960
Parents:
b1d08a58
git-author:
Sebastian Huber <sebastian.huber@…> (02/18/14 12:30:28)
git-committer:
Sebastian Huber <sebastian.huber@…> (02/19/14 08:59:42)
Message:

score: Wait for per-CPU state changes later

Wait for per-CPU changes into PER_CPU_STATE_READY_TO_BEGIN_MULTITASKING
later. There is no need to delay the initialization of the main
processor at this point.

File:
1 edited

Legend:

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

    rb1d08a58 rc4ff027  
    4747
    4848  _SMP_Processor_count = max_cpus;
    49 
    50   for ( cpu = 1 ; cpu < max_cpus; ++cpu ) {
    51     const Per_CPU_Control *per_cpu = _Per_CPU_Get_by_index( cpu );
    52 
    53     _Per_CPU_Wait_for_state(
    54       per_cpu,
    55       PER_CPU_STATE_READY_TO_BEGIN_MULTITASKING
    56     );
    57   }
    5849}
    5950
     
    150141
    151142    if ( cpu != self ) {
     143      _Per_CPU_Wait_for_state(
     144        per_cpu,
     145        PER_CPU_STATE_READY_TO_BEGIN_MULTITASKING
     146      );
     147
    152148      _Per_CPU_Change_state( per_cpu, PER_CPU_STATE_BEGIN_MULTITASKING );
    153149    }
Note: See TracChangeset for help on using the changeset viewer.