Changeset 7336be9d in rtems for cpukit/sapi


Ignore:
Timestamp:
Feb 18, 2014, 12:40:39 PM (6 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
4.11, master
Children:
ba25cc2
Parents:
7fe05615
git-author:
Sebastian Huber <sebastian.huber@…> (02/18/14 12:40:39)
git-committer:
Sebastian Huber <sebastian.huber@…> (03/06/14 08:43:57)
Message:

score: SMP initialization and shutdown changes

Rename _SMP_Request_other_cores_to_perform_first_context_switch() into
_SMP_Request_start_multitasking() since this requests now a multitasking
start on all configured and available processors. The name corresponds
_Thread_Start_multitasking() and
_SMP_Start_multitasking_on_secondary_processor() actions issued in
response to this request. Move in source file to right place.

Rename PER_CPU_STATE_READY_TO_BEGIN_MULTITASKING into
PER_CPU_STATE_READY_TO_START_MULTITASKING.

Rename PER_CPU_STATE_BEGIN_MULTITASKING into
PER_CPU_STATE_REQUEST_START_MULTITASKING.

Rename _SMP_Request_other_cores_to_shutdown() into
_SMP_Request_shutdown().

Add a per-CPU state lock to protect all changes. This was necessary to
offer a controlled shutdown of the system (atomic read/writes alone are
not sufficient for this kind of synchronization).

Add documentation for Per_CPU_State.

Delete debug output.

New tests smptests/smpfatal01 and smptests/smpfatal02.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpukit/sapi/src/exinit.c

    r7fe05615 r7336be9d  
    211211  _System_state_Set( SYSTEM_STATE_UP );
    212212
    213   _SMP_Request_other_cores_to_perform_first_context_switch();
     213  _SMP_Request_start_multitasking();
    214214
    215215  _Thread_Start_multitasking();
Note: See TracChangeset for help on using the changeset viewer.