[PATCH 4/7] score: Simplify <rtems/system.h>
Sebastian Huber
sebastian.huber at embedded-brains.de
Thu Jun 25 13:17:14 UTC 2015
Drop the <rtems/score/percpu.h> include since this file exposes a lot of
implementation details.
---
cpukit/posix/src/pthreadself.c | 3 +--
cpukit/score/include/rtems/score/userextimpl.h | 1 +
cpukit/score/include/rtems/system.h | 2 +-
cpukit/score/src/corespinlockrelease.c | 2 +-
4 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/cpukit/posix/src/pthreadself.c b/cpukit/posix/src/pthreadself.c
index 361e94b..95ce15a 100644
--- a/cpukit/posix/src/pthreadself.c
+++ b/cpukit/posix/src/pthreadself.c
@@ -21,9 +21,8 @@
#endif
#include <pthread.h>
-#include <errno.h>
-#include <rtems/system.h>
+#include <rtems/score/percpu.h>
#include <rtems/score/thread.h>
pthread_t pthread_self( void )
diff --git a/cpukit/score/include/rtems/score/userextimpl.h b/cpukit/score/include/rtems/score/userextimpl.h
index 19055f9..8c2a1fa 100644
--- a/cpukit/score/include/rtems/score/userextimpl.h
+++ b/cpukit/score/include/rtems/score/userextimpl.h
@@ -20,6 +20,7 @@
#include <rtems/score/userext.h>
#include <rtems/score/chainimpl.h>
+#include <rtems/score/percpu.h>
#ifdef __cplusplus
extern "C" {
diff --git a/cpukit/score/include/rtems/system.h b/cpukit/score/include/rtems/system.h
index d063c78..26156c6 100644
--- a/cpukit/score/include/rtems/system.h
+++ b/cpukit/score/include/rtems/system.h
@@ -20,7 +20,7 @@
#ifndef _RTEMS_SYSTEM_H
#define _RTEMS_SYSTEM_H
-#include <rtems/score/percpu.h>
+#include <rtems/score/cpu.h>
/**
* @defgroup ScoreSystem System Information
diff --git a/cpukit/score/src/corespinlockrelease.c b/cpukit/score/src/corespinlockrelease.c
index 5ff5807..c10337a 100644
--- a/cpukit/score/src/corespinlockrelease.c
+++ b/cpukit/score/src/corespinlockrelease.c
@@ -18,8 +18,8 @@
#include "config.h"
#endif
-#include <rtems/system.h>
#include <rtems/score/corespinlockimpl.h>
+#include <rtems/score/percpu.h>
#include <rtems/score/thread.h>
#include <rtems/score/watchdog.h>
--
1.8.4.5
More information about the devel
mailing list