diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2021-07-27 13:40:51 +0200 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2021-07-28 19:32:24 +0200 |
commit | cbb1103a3ca9d2f42501ba373b5d559b981fb1c7 (patch) | |
tree | 8e20c863237d95390b49c82d7ee45791389b5a2a /cpukit/score/src/threadstartmultitasking.c | |
parent | score: Remove processor event broadcast/receive (diff) | |
download | rtems-cbb1103a3ca9d2f42501ba373b5d559b981fb1c7.tar.bz2 |
score: Simplify SMP processor state handling
The per-CPU states which control the SMP system initialization were added quite
early during the SMP support development. Replace this initial implementation
with a simplified one. There is no longer a global SMP lock required which
serialized the state changes of all processors. The new implementation better
integrates with the per-CPU jobs.
Diffstat (limited to 'cpukit/score/src/threadstartmultitasking.c')
-rw-r--r-- | cpukit/score/src/threadstartmultitasking.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/cpukit/score/src/threadstartmultitasking.c b/cpukit/score/src/threadstartmultitasking.c index 094a535394..9fa52a58ac 100644 --- a/cpukit/score/src/threadstartmultitasking.c +++ b/cpukit/score/src/threadstartmultitasking.c @@ -22,6 +22,7 @@ #include <rtems/score/threadimpl.h> #include <rtems/score/assert.h> +#include <rtems/score/smpimpl.h> void _Thread_Start_multitasking( void ) { @@ -29,7 +30,8 @@ void _Thread_Start_multitasking( void ) Thread_Control *heir; #if defined(RTEMS_SMP) - _Per_CPU_State_change( cpu_self, PER_CPU_STATE_UP ); + _Per_CPU_Set_state( cpu_self, PER_CPU_STATE_UP ); + _SMP_Try_to_process_message( cpu_self, SMP_MESSAGE_FORCE_PROCESSING ); /* * Threads begin execution in the _Thread_Handler() function. This |