Changeset a936aa49 in rtems for cpukit/score/src/smp.c


Ignore:
Timestamp:
Jun 6, 2013, 1:41:00 PM (6 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
4.11, master
Children:
8b222be
Parents:
8f42092
git-author:
Sebastian Huber <sebastian.huber@…> (06/06/13 13:41:00)
git-committer:
Sebastian Huber <sebastian.huber@…> (06/14/13 14:26:08)
Message:

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.

File:
1 edited

Legend:

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

    r8f42092 ra936aa49  
    5252   */
    5353  heir = per_cpu->heir;
     54  heir->is_executing = true;
     55  per_cpu->executing->is_executing = false;
    5456  per_cpu->executing = heir;
     57  per_cpu->dispatch_necessary = false;
    5558
    5659  /*
Note: See TracChangeset for help on using the changeset viewer.