diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2015-06-25 14:11:53 +0200 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2015-06-26 09:16:25 +0200 |
commit | 48fed9a56e6df6e766ca18d821278112fc1bfa10 (patch) | |
tree | 4a9a0938539b804ac968f75b05bb47c94ff00ca8 /cpukit | |
parent | score: Fix extern "C" in <rtems/score/heap.h> (diff) | |
download | rtems-48fed9a56e6df6e766ca18d821278112fc1bfa10.tar.bz2 |
score: Simplify <rtems/system.h>
Drop the <rtems/score/percpu.h> include since this file exposes a lot of
implementation details.
Diffstat (limited to '')
-rw-r--r-- | cpukit/libcsupport/src/sync.c | 1 | ||||
-rw-r--r-- | cpukit/libmisc/cpuuse/cpuusagereset.c | 2 | ||||
-rw-r--r-- | cpukit/posix/src/pthreadself.c | 3 | ||||
-rw-r--r-- | cpukit/sapi/include/confdefs.h | 1 | ||||
-rw-r--r-- | cpukit/sapi/src/profilingiterate.c | 1 | ||||
-rw-r--r-- | cpukit/score/cpu/arm/arm_exc_handler_high.c | 1 | ||||
-rw-r--r-- | cpukit/score/cpu/i386/cpu.c | 1 | ||||
-rw-r--r-- | cpukit/score/cpu/m68k/cpu.c | 2 | ||||
-rw-r--r-- | cpukit/score/cpu/nios2/nios2-isr-is-in-progress.c | 2 | ||||
-rw-r--r-- | cpukit/score/include/rtems/score/userextimpl.h | 1 | ||||
-rw-r--r-- | cpukit/score/include/rtems/system.h | 2 | ||||
-rw-r--r-- | cpukit/score/src/corespinlockrelease.c | 2 |
12 files changed, 12 insertions, 7 deletions
diff --git a/cpukit/libcsupport/src/sync.c b/cpukit/libcsupport/src/sync.c index 9f6e31ba0c..214e42c631 100644 --- a/cpukit/libcsupport/src/sync.c +++ b/cpukit/libcsupport/src/sync.c @@ -29,6 +29,7 @@ int fdatasync(int); /* still not always prototyped */ #include <stdio.h> #include <rtems.h> +#include <rtems/score/percpu.h> /* XXX check standards -- Linux version appears to be void */ void _fwalk(struct _reent *, void *); diff --git a/cpukit/libmisc/cpuuse/cpuusagereset.c b/cpukit/libmisc/cpuuse/cpuusagereset.c index e6c429e5b5..8e9fe54ced 100644 --- a/cpukit/libmisc/cpuuse/cpuusagereset.c +++ b/cpukit/libmisc/cpuuse/cpuusagereset.c @@ -19,7 +19,7 @@ #endif #include <rtems/cpuuse.h> -#include <rtems/score/thread.h> +#include <rtems/score/percpu.h> #include <rtems/score/todimpl.h> #include <rtems/score/watchdogimpl.h> diff --git a/cpukit/posix/src/pthreadself.c b/cpukit/posix/src/pthreadself.c index 361e94ba94..95ce15a9b0 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/sapi/include/confdefs.h b/cpukit/sapi/include/confdefs.h index 70ad854177..8115a85724 100644 --- a/cpukit/sapi/include/confdefs.h +++ b/cpukit/sapi/include/confdefs.h @@ -27,6 +27,7 @@ */ #include <rtems.h> #include <rtems/score/apimutex.h> +#include <rtems/score/percpu.h> #include <rtems/score/wkspace.h> #ifdef CONFIGURE_DISABLE_BSP_SETTINGS diff --git a/cpukit/sapi/src/profilingiterate.c b/cpukit/sapi/src/profilingiterate.c index 0fd96fa12d..9ec46fc97a 100644 --- a/cpukit/sapi/src/profilingiterate.c +++ b/cpukit/sapi/src/profilingiterate.c @@ -18,6 +18,7 @@ #include <rtems/profiling.h> #include <rtems/counter.h> +#include <rtems/score/percpu.h> #include <rtems/score/smplock.h> #include <rtems.h> diff --git a/cpukit/score/cpu/arm/arm_exc_handler_high.c b/cpukit/score/cpu/arm/arm_exc_handler_high.c index dda49dbf1a..27500f1824 100644 --- a/cpukit/score/cpu/arm/arm_exc_handler_high.c +++ b/cpukit/score/cpu/arm/arm_exc_handler_high.c @@ -32,6 +32,7 @@ #include <rtems/score/isr.h> #include <rtems/score/wkspace.h> #include <rtems/score/thread.h> +#include <rtems/score/percpu.h> #include <rtems/score/cpu.h> #ifdef ARM_MULTILIB_ARCH_V4 diff --git a/cpukit/score/cpu/i386/cpu.c b/cpukit/score/cpu/i386/cpu.c index 38b84e6750..436c822eb1 100644 --- a/cpukit/score/cpu/i386/cpu.c +++ b/cpukit/score/cpu/i386/cpu.c @@ -24,6 +24,7 @@ #include <rtems/score/idtr.h> #include <rtems/bspIo.h> +#include <rtems/score/percpu.h> #include <rtems/score/thread.h> #define I386_ASSERT_OFFSET(field, off) \ diff --git a/cpukit/score/cpu/m68k/cpu.c b/cpukit/score/cpu/m68k/cpu.c index 4efaaa49ef..ad46c10e78 100644 --- a/cpukit/score/cpu/m68k/cpu.c +++ b/cpukit/score/cpu/m68k/cpu.c @@ -17,8 +17,8 @@ #include "config.h" #endif -#include <rtems/system.h> #include <rtems/score/isr.h> +#include <rtems/score/percpu.h> #include <rtems/score/tls.h> #if defined( __mcoldfire__ ) && ( M68K_HAS_FPU == 1 ) diff --git a/cpukit/score/cpu/nios2/nios2-isr-is-in-progress.c b/cpukit/score/cpu/nios2/nios2-isr-is-in-progress.c index 24cc8e472f..b35de2baad 100644 --- a/cpukit/score/cpu/nios2/nios2-isr-is-in-progress.c +++ b/cpukit/score/cpu/nios2/nios2-isr-is-in-progress.c @@ -16,9 +16,9 @@ #include "config.h" #endif -#include <rtems/system.h> #include <rtems/score/isr.h> #include <rtems/score/nios2-utility.h> +#include <rtems/score/percpu.h> bool _ISR_Is_in_progress( void ) { diff --git a/cpukit/score/include/rtems/score/userextimpl.h b/cpukit/score/include/rtems/score/userextimpl.h index 19055f976b..8c2a1fac4d 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 d063c78063..26156c64f7 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 5ff58074c4..c10337a123 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> |