1 | /** |
---|
2 | * @file |
---|
3 | * |
---|
4 | * @ingroup ScoreSchedulerPrioritySMP |
---|
5 | * |
---|
6 | * @brief Deterministic Priority SMP Scheduler API |
---|
7 | */ |
---|
8 | |
---|
9 | /* |
---|
10 | * Copyright (c) 2013-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 | #ifndef _RTEMS_SCORE_SCHEDULERPRIORITYSMPIMPL_H |
---|
24 | #define _RTEMS_SCORE_SCHEDULERPRIORITYSMPIMPL_H |
---|
25 | |
---|
26 | #include <rtems/score/scheduler.h> |
---|
27 | #include <rtems/score/schedulerpriority.h> |
---|
28 | #include <rtems/score/schedulersmp.h> |
---|
29 | |
---|
30 | #ifdef __cplusplus |
---|
31 | extern "C" { |
---|
32 | #endif /* __cplusplus */ |
---|
33 | |
---|
34 | /** |
---|
35 | * @ingroup ScoreSchedulerPrioritySMP |
---|
36 | * @{ |
---|
37 | */ |
---|
38 | |
---|
39 | Scheduler_priority_SMP_Context *_Scheduler_priority_SMP_Get_self( |
---|
40 | Scheduler_Context *context |
---|
41 | ); |
---|
42 | |
---|
43 | Scheduler_priority_SMP_Node *_Scheduler_priority_SMP_Node_get( |
---|
44 | Thread_Control *thread |
---|
45 | ); |
---|
46 | |
---|
47 | void _Scheduler_priority_SMP_Insert_ready_fifo( |
---|
48 | Scheduler_Context *context, |
---|
49 | Thread_Control *thread |
---|
50 | ); |
---|
51 | |
---|
52 | void _Scheduler_priority_SMP_Insert_ready_lifo( |
---|
53 | Scheduler_Context *context, |
---|
54 | Thread_Control *thread |
---|
55 | ); |
---|
56 | |
---|
57 | void _Scheduler_priority_SMP_Move_from_scheduled_to_ready( |
---|
58 | Scheduler_Context *context, |
---|
59 | Thread_Control *scheduled_to_ready |
---|
60 | ); |
---|
61 | |
---|
62 | void _Scheduler_priority_SMP_Move_from_ready_to_scheduled( |
---|
63 | Scheduler_Context *context, |
---|
64 | Thread_Control *ready_to_scheduled |
---|
65 | ); |
---|
66 | |
---|
67 | void _Scheduler_priority_SMP_Extract_from_ready( |
---|
68 | Scheduler_Context *context, |
---|
69 | Thread_Control *thread |
---|
70 | ); |
---|
71 | |
---|
72 | void _Scheduler_priority_SMP_Do_update( |
---|
73 | Scheduler_Context *context, |
---|
74 | Scheduler_Node *base_node, |
---|
75 | Priority_Control new_priority |
---|
76 | ); |
---|
77 | |
---|
78 | /** @} */ |
---|
79 | |
---|
80 | #ifdef __cplusplus |
---|
81 | } |
---|
82 | #endif /* __cplusplus */ |
---|
83 | |
---|
84 | #endif /* _RTEMS_SCORE_SCHEDULERPRIORITYSMPIMPL_H */ |
---|