score: Simplify <rtems/system.h>

Drop the <rtems/score/percpu.h> include since this file exposes a lot of
implementation details.
This commit is contained in:
Sebastian Huber
2015-06-25 14:11:53 +02:00
parent 270ccc5907
commit 48fed9a56e
19 changed files with 19 additions and 7 deletions

View File

@@ -52,6 +52,7 @@
#include <libcpu/spr.h>
#include <bsp/pci.h>
#include <rtems/bspIo.h>
#include <rtems/score/percpu.h>
#include <bsp/bspException.h>

View File

@@ -19,6 +19,7 @@
#include <bsp.h>
#include <rtems/clockdrv.h>
#include <rtems/score/percpu.h>
#ifdef Clock_driver_nanoseconds_since_last_tick
#error "Update driver to use the timecounter instead of nanoseconds extension"

View File

@@ -13,6 +13,7 @@
#include <rtems.h>
#include <rtems/timecounter.h>
#include <rtems/score/percpu.h>
#include <stdlib.h>
#include <bsp.h>
#include <bsp/tlib.h>

View File

@@ -14,6 +14,7 @@
#include <rtems.h>
#include <stdlib.h>
#include <rtems/libio.h>
#include <rtems/score/percpu.h>
#include <bsp.h>
#include <libcpu/cecRegs.h>

View File

@@ -12,6 +12,7 @@
#include <rtems/score/cpu.h>
#include <rtems/score/interr.h>
#include <rtems/score/or1k-utility.h>
#include <rtems/score/percpu.h>
#include <libcpu/cache.h>
static inline void _CPU_OR1K_Cache_enable_data(void)

View File

@@ -30,6 +30,7 @@
#include <rtems/bspIo.h> /* for printk() */
#include <libcpu/powerpc-utility.h>
#include <rtems/timecounter.h>
#include <rtems/score/percpu.h>
#include <bspopts.h> /* for CLOCK_DRIVER_USE_FAST_IDLE */

View File

@@ -63,6 +63,7 @@
#ifndef DEBUG_MAIN
#include <rtems.h>
#include <rtems/bspIo.h>
#include <rtems/score/percpu.h>
#include <libcpu/cpuIdent.h>
#include <libcpu/spr.h>
#ifdef DEBUG_EXC

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@@ -20,6 +20,7 @@
#include <rtems/score/userext.h>
#include <rtems/score/chainimpl.h>
#include <rtems/score/percpu.h>
#ifdef __cplusplus
extern "C" {

View File

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

View File

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