forked from Imagelibrary/rtems
smp: Rename _Scheduler_simple_smp_Start_idle()
Rename _Scheduler_simple_smp_Start_idle() to _Scheduler_SMP_Start_idle().
This commit is contained in:
@@ -120,6 +120,7 @@ endif
|
||||
|
||||
if HAS_SMP
|
||||
libscore_a_SOURCES += src/schedulersimplesmp.c
|
||||
libscore_a_SOURCES += src/schedulersmpstartidle.c
|
||||
libscore_a_SOURCES += src/smp.c
|
||||
endif
|
||||
|
||||
|
||||
@@ -68,7 +68,7 @@ extern "C" {
|
||||
_Scheduler_priority_Priority_compare, \
|
||||
_Scheduler_default_Release_job, \
|
||||
_Scheduler_default_Tick, \
|
||||
_Scheduler_simple_smp_Start_idle \
|
||||
_Scheduler_SMP_Start_idle \
|
||||
}
|
||||
|
||||
void _Scheduler_simple_smp_Initialize( void );
|
||||
@@ -83,11 +83,6 @@ void _Scheduler_simple_smp_Yield( Thread_Control *thread );
|
||||
|
||||
void _Scheduler_simple_smp_Schedule( Thread_Control *thread );
|
||||
|
||||
void _Scheduler_simple_smp_Start_idle(
|
||||
Thread_Control *thread,
|
||||
Per_CPU_Control *cpu
|
||||
);
|
||||
|
||||
/** @} */
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
||||
@@ -24,6 +24,8 @@
|
||||
#define _RTEMS_SCORE_SCHEDULERSMP_H
|
||||
|
||||
#include <rtems/score/chain.h>
|
||||
#include <rtems/score/percpu.h>
|
||||
#include <rtems/score/thread.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
@@ -42,6 +44,11 @@ typedef struct {
|
||||
Chain_Control ready[ 1 ];
|
||||
} Scheduler_SMP_Control;
|
||||
|
||||
void _Scheduler_SMP_Start_idle(
|
||||
Thread_Control *thread,
|
||||
Per_CPU_Control *cpu
|
||||
);
|
||||
|
||||
/** @} */
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
||||
@@ -25,8 +25,6 @@
|
||||
|
||||
#include <rtems/score/schedulersmp.h>
|
||||
#include <rtems/score/scheduler.h>
|
||||
#include <rtems/score/thread.h>
|
||||
#include <rtems/score/percpu.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
|
||||
@@ -182,15 +182,3 @@ void _Scheduler_simple_smp_Schedule( Thread_Control *thread )
|
||||
{
|
||||
( void ) thread;
|
||||
}
|
||||
|
||||
void _Scheduler_simple_smp_Start_idle(
|
||||
Thread_Control *thread,
|
||||
Per_CPU_Control *cpu
|
||||
)
|
||||
{
|
||||
Scheduler_SMP_Control *self = _Scheduler_SMP_Instance();
|
||||
|
||||
thread->is_scheduled = true;
|
||||
thread->cpu = cpu;
|
||||
_Chain_Append_unprotected( &self->scheduled, &thread->Object.Node );
|
||||
}
|
||||
|
||||
40
cpukit/score/src/schedulersmpstartidle.c
Normal file
40
cpukit/score/src/schedulersmpstartidle.c
Normal file
@@ -0,0 +1,40 @@
|
||||
/**
|
||||
* @file
|
||||
*
|
||||
* @brief SMP Scheduler Start Idle Operation
|
||||
*
|
||||
* @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.
|
||||
*/
|
||||
|
||||
#if HAVE_CONFIG_H
|
||||
#include "config.h"
|
||||
#endif
|
||||
|
||||
#include <rtems/score/schedulersmpimpl.h>
|
||||
#include <rtems/score/chainimpl.h>
|
||||
|
||||
void _Scheduler_SMP_Start_idle(
|
||||
Thread_Control *thread,
|
||||
Per_CPU_Control *cpu
|
||||
)
|
||||
{
|
||||
Scheduler_SMP_Control *self = _Scheduler_SMP_Instance();
|
||||
|
||||
thread->is_scheduled = true;
|
||||
thread->cpu = cpu;
|
||||
_Chain_Append_unprotected( &self->scheduled, &thread->Object.Node );
|
||||
}
|
||||
Reference in New Issue
Block a user