smp: Rename _Scheduler_simple_smp_Start_idle()

Rename _Scheduler_simple_smp_Start_idle() to
_Scheduler_SMP_Start_idle().
This commit is contained in:
Sebastian Huber
2013-08-12 12:34:27 +02:00
parent 9d83f58ab8
commit 6ba15488ee
6 changed files with 49 additions and 20 deletions

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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" {

View File

@@ -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 );
}

View 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 );
}