diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2013-06-06 15:41:00 +0200 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2013-06-14 16:26:08 +0200 |
commit | a936aa49b5171915aee6c7cecc0b84a3912fd692 (patch) | |
tree | ec2c8adb89b3659a583e2c208c69dba3d4558073 /cpukit/score/src/smp.c | |
parent | scheduler: Simplify simple scheduler (diff) | |
download | rtems-a936aa49b5171915aee6c7cecc0b84a3912fd692.tar.bz2 |
scheduler: New simple SMP scheduler implementation
The new Simple SMP Scheduler allocates a processor for the processor
count highest priority ready threads. The thread priority and position
in the ready chain are the only information to determine the scheduling
decision. Threads with an allocated processor are in the scheduled
chain. After initialization the scheduled chain has exactly processor
count nodes. Each processor has exactly one allocated thread after
initialization. All enqueue and extract operations may exchange threads
with the scheduled chain. One thread will be added and another will be
removed. The scheduled and ready chain is ordered according to the
thread priority order. The chain insert operations are O(count of ready
threads), thus this scheduler is unsuitable for most real-time
applications.
The thread preempt mode will be ignored.
Diffstat (limited to 'cpukit/score/src/smp.c')
-rw-r--r-- | cpukit/score/src/smp.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/cpukit/score/src/smp.c b/cpukit/score/src/smp.c index 10acbe25de..3081062f87 100644 --- a/cpukit/score/src/smp.c +++ b/cpukit/score/src/smp.c @@ -51,7 +51,10 @@ void rtems_smp_secondary_cpu_initialize( void ) * THIS core. */ heir = per_cpu->heir; + heir->is_executing = true; + per_cpu->executing->is_executing = false; per_cpu->executing = heir; + per_cpu->dispatch_necessary = false; /* * Threads begin execution in the _Thread_Handler() function. This function |