From 1c46b80329d5d099022d8c7e0a8c593845120729 Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Mon, 7 Nov 2016 06:25:03 +0100 Subject: score: Add scheduler to per-CPU information This makes it possible to adjust the scheduler of a processor at run-time. Update #2797. --- cpukit/score/include/rtems/score/percpu.h | 21 +++++++++++++++++---- 1 file changed, 17 insertions(+), 4 deletions(-) (limited to 'cpukit/score/include/rtems/score/percpu.h') 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. -- cgit v1.2.3