[rtems commit] score: Simplify <rtems/score/scheduler.h>
Sebastian Huber
sebh at rtems.org
Fri Jun 26 09:23:24 UTC 2015
Module: rtems
Branch: master
Commit: 96316d1b5069cfbce777cbcfa65ff7230d376874
Changeset: http://git.rtems.org/rtems/commit/?id=96316d1b5069cfbce777cbcfa65ff7230d376874
Author: Sebastian Huber <sebastian.huber at embedded-brains.de>
Date: Fri Jun 26 09:15:36 2015 +0200
score: Simplify <rtems/score/scheduler.h>
Drop the <rtems/score/percpu.h> include since this file exposes a lot of
implementation details.
---
cpukit/score/include/rtems/score/scheduler.h | 7 ++++---
cpukit/score/include/rtems/score/schedulersmp.h | 2 +-
2 files changed, 5 insertions(+), 4 deletions(-)
diff --git a/cpukit/score/include/rtems/score/scheduler.h b/cpukit/score/include/rtems/score/scheduler.h
index 67c6e25..5296644 100644
--- a/cpukit/score/include/rtems/score/scheduler.h
+++ b/cpukit/score/include/rtems/score/scheduler.h
@@ -19,7 +19,6 @@
#ifndef _RTEMS_SCORE_SCHEDULER_H
#define _RTEMS_SCORE_SCHEDULER_H
-#include <rtems/score/percpu.h>
#include <rtems/score/priority.h>
#include <rtems/score/thread.h>
#if defined(__RTEMS_HAVE_SYS_CPUSET_H__) && defined(RTEMS_SMP)
@@ -30,6 +29,8 @@
extern "C" {
#endif
+struct Per_CPU_Control;
+
/**
* @defgroup ScoreScheduler Scheduler Handler
*
@@ -148,7 +149,7 @@ typedef struct {
void ( *start_idle )(
const Scheduler_Control *,
Thread_Control *,
- Per_CPU_Control *
+ struct Per_CPU_Control *
);
#if defined(__RTEMS_HAVE_SYS_CPUSET_H__) && defined(RTEMS_SMP)
@@ -505,7 +506,7 @@ void _Scheduler_default_Tick(
void _Scheduler_default_Start_idle(
const Scheduler_Control *scheduler,
Thread_Control *the_thread,
- Per_CPU_Control *cpu
+ struct Per_CPU_Control *cpu
);
#if defined(__RTEMS_HAVE_SYS_CPUSET_H__) && defined(RTEMS_SMP)
diff --git a/cpukit/score/include/rtems/score/schedulersmp.h b/cpukit/score/include/rtems/score/schedulersmp.h
index 9e11488..c85445d 100644
--- a/cpukit/score/include/rtems/score/schedulersmp.h
+++ b/cpukit/score/include/rtems/score/schedulersmp.h
@@ -115,7 +115,7 @@ typedef struct {
void _Scheduler_SMP_Start_idle(
const Scheduler_Control *scheduler,
Thread_Control *thread,
- Per_CPU_Control *cpu
+ struct Per_CPU_Control *cpu
);
/** @} */
More information about the vc
mailing list