4.115
Last change
on this file since 2369b10 was
beab7329,
checked in by Sebastian Huber <sebastian.huber@…>, on 05/13/14 at 14:03:05
|
score: Introduce scheduler nodes
Rename scheduler per-thread information into scheduler nodes using
Scheduler_Node as the base type. Use inheritance for specialized
schedulers.
Move the scheduler specific states from the thread control block into
the scheduler node structure.
Validate the SMP scheduler node state transitions in case RTEMS_DEBUG is
defined.
|
-
Property mode set to
100644
|
File size:
1011 bytes
|
Line | |
---|
1 | /** |
---|
2 | * @file |
---|
3 | * |
---|
4 | * @ingroup ScoreSchedulerSMP |
---|
5 | * |
---|
6 | * @brief SMP Scheduler Implementation |
---|
7 | */ |
---|
8 | |
---|
9 | /* |
---|
10 | * Copyright (c) 2014 embedded brains GmbH. All rights reserved. |
---|
11 | * |
---|
12 | * embedded brains GmbH |
---|
13 | * Dornierstr. 4 |
---|
14 | * 82178 Puchheim |
---|
15 | * Germany |
---|
16 | * <rtems@embedded-brains.de> |
---|
17 | * |
---|
18 | * The license and distribution terms for this file may be |
---|
19 | * found in the file LICENSE in this distribution or at |
---|
20 | * http://www.rtems.org/license/LICENSE. |
---|
21 | */ |
---|
22 | |
---|
23 | #if HAVE_CONFIG_H |
---|
24 | #include "config.h" |
---|
25 | #endif |
---|
26 | |
---|
27 | #include <rtems/score/schedulerpriorityimpl.h> |
---|
28 | |
---|
29 | /* |
---|
30 | * Table with all valid state transitions. It is used in |
---|
31 | * _Scheduler_SMP_Node_change_state() in case RTEMS_DEBUG is defined. |
---|
32 | */ |
---|
33 | const bool _Scheduler_SMP_Node_valid_state_changes[ 4 ][ 4 ] = { |
---|
34 | /* BLOCKED SCHEDULED READY IN THE AIR */ |
---|
35 | /* BLOCKED */ { false, true, true, false }, |
---|
36 | /* SCHEDULED */ { false, false, true, true }, |
---|
37 | /* READY */ { true, true, false, false }, |
---|
38 | /* IN THE AIR */ { true, true, true, false } |
---|
39 | }; |
---|
Note: See
TracBrowser
for help on using the repository browser.