summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2015-06-26 09:15:36 +0200
committerSebastian Huber <sebastian.huber@embedded-brains.de>2015-06-26 09:16:29 +0200
commit96316d1b5069cfbce777cbcfa65ff7230d376874 (patch)
tree14159f4a60295d483ff874a42664c798fe112135
parent48fed9a56e6df6e766ca18d821278112fc1bfa10 (diff)
downloadrtems-96316d1b5069cfbce777cbcfa65ff7230d376874.tar.bz2
score: Simplify <rtems/score/scheduler.h>
Drop the <rtems/score/percpu.h> include since this file exposes a lot of implementation details.
-rw-r--r--cpukit/score/include/rtems/score/scheduler.h7
-rw-r--r--cpukit/score/include/rtems/score/schedulersmp.h2
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 67c6e2564c..5296644aeb 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 9e11488584..c85445dd7a 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
);
/** @} */