diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2013-08-12 10:32:32 +0200 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2013-08-20 10:14:04 +0200 |
commit | 9d83f58ab8208b49a4e27d4ff077cf526f902477 (patch) | |
tree | 93ef828f12d6edf27104fc4a313520f1649fec9a /cpukit/score/include/rtems/score/schedulersmpimpl.h | |
parent | score: Add _Priority_bit_map_Is_empty() (diff) | |
download | rtems-9d83f58ab8208b49a4e27d4ff077cf526f902477.tar.bz2 |
smp: Replace Scheduler_simple_smp_Control
Replace Scheduler_simple_smp_Control with Scheduler_SMP_Control. Rename
_Scheduler_simple_smp_Instance() to _Scheduler_SMP_Instance().
Diffstat (limited to 'cpukit/score/include/rtems/score/schedulersmpimpl.h')
-rw-r--r-- | cpukit/score/include/rtems/score/schedulersmpimpl.h | 52 |
1 files changed, 52 insertions, 0 deletions
diff --git a/cpukit/score/include/rtems/score/schedulersmpimpl.h b/cpukit/score/include/rtems/score/schedulersmpimpl.h new file mode 100644 index 0000000000..7736d2bbf8 --- /dev/null +++ b/cpukit/score/include/rtems/score/schedulersmpimpl.h @@ -0,0 +1,52 @@ +/** + * @file + * + * @brief SMP Scheduler Implementation + * + * @ingroup ScoreSchedulerSMP + */ + +/* + * Copyright (c) 2013 embedded brains GmbH. All rights reserved. + * + * embedded brains GmbH + * Dornierstr. 4 + * 82178 Puchheim + * Germany + * <rtems@embedded-brains.de> + * + * The license and distribution terms for this file may be + * found in the file LICENSE in this distribution or at + * http://www.rtems.com/license/LICENSE. + */ + +#ifndef _RTEMS_SCORE_SCHEDULERSMPIMPL_H +#define _RTEMS_SCORE_SCHEDULERSMPIMPL_H + +#include <rtems/score/schedulersmp.h> +#include <rtems/score/scheduler.h> +#include <rtems/score/thread.h> +#include <rtems/score/percpu.h> + +#ifdef __cplusplus +extern "C" { +#endif /* __cplusplus */ + +/** + * @addtogroup ScoreSchedulerSMP + * + * @{ + */ + +static inline Scheduler_SMP_Control *_Scheduler_SMP_Instance( void ) +{ + return _Scheduler.information; +} + +/** @} */ + +#ifdef __cplusplus +} +#endif /* __cplusplus */ + +#endif /* _RTEMS_SCORE_SCHEDULERSMPIMPL_H */ |