summaryrefslogtreecommitdiffstats
path: root/cpukit/score/include/rtems/score/percpu.h
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2016-11-07 06:25:03 +0100
committerSebastian Huber <sebastian.huber@embedded-brains.de>2016-11-09 15:27:29 +0100
commit1c46b80329d5d099022d8c7e0a8c593845120729 (patch)
tree10806fd4ca26dd0a7b3410baf1187575d6bc8102 /cpukit/score/include/rtems/score/percpu.h
parentscore: Avoid _Scheduler_Get_by_CPU_index( 0 ) (diff)
downloadrtems-1c46b80329d5d099022d8c7e0a8c593845120729.tar.bz2
score: Add scheduler to per-CPU information
This makes it possible to adjust the scheduler of a processor at run-time. Update #2797.
Diffstat (limited to '')
-rw-r--r--cpukit/score/include/rtems/score/percpu.h21
1 files changed, 17 insertions, 4 deletions
diff --git a/cpukit/score/include/rtems/score/percpu.h b/cpukit/score/include/rtems/score/percpu.h
index e3be0c80d3..94aef1de22 100644
--- a/cpukit/score/include/rtems/score/percpu.h
+++ b/cpukit/score/include/rtems/score/percpu.h
@@ -410,10 +410,23 @@ typedef struct Per_CPU_Control {
*/
Atomic_Ulong message;
- /**
- * @brief The scheduler context of the scheduler owning this processor.
- */
- const struct Scheduler_Context *scheduler_context;
+ struct {
+ /**
+ * @brief The scheduler control of the scheduler owning this processor.
+ *
+ * This pointer is NULL in case this processor is currently not used by a
+ * scheduler instance.
+ */
+ const struct Scheduler_Control *control;
+
+ /**
+ * @brief The scheduler context of the scheduler owning this processor.
+ *
+ * This pointer is NULL in case this processor is currently not used by a
+ * scheduler instance.
+ */
+ const struct Scheduler_Context *context;
+ } Scheduler;
/**
* @brief Indicates the current state of the CPU.