diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2016-05-31 09:52:36 +0200 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2016-05-31 10:10:36 +0200 |
commit | 5e072f6d353519dac8509fade2b65f1e4a0748bb (patch) | |
tree | a94a0860ff59e6e12cc6edd0baa5933586727b12 /cpukit/libmisc | |
parent | Fix rtems_print_printer_fprintf() (diff) | |
download | rtems-5e072f6d353519dac8509fade2b65f1e4a0748bb.tar.bz2 |
cpuuse: Hide implementation details
Diffstat (limited to 'cpukit/libmisc')
-rw-r--r-- | cpukit/libmisc/cpuuse/cpuusagedata.c | 2 | ||||
-rw-r--r-- | cpukit/libmisc/cpuuse/cpuusagereport.c | 2 | ||||
-rw-r--r-- | cpukit/libmisc/cpuuse/cpuusagereset.c | 2 | ||||
-rw-r--r-- | cpukit/libmisc/cpuuse/cpuusagetop.c | 2 | ||||
-rw-r--r-- | cpukit/libmisc/cpuuse/cpuuse.h | 4 | ||||
-rw-r--r-- | cpukit/libmisc/cpuuse/cpuuseimpl.h | 26 |
6 files changed, 33 insertions, 5 deletions
diff --git a/cpukit/libmisc/cpuuse/cpuusagedata.c b/cpukit/libmisc/cpuuse/cpuusagedata.c index 661b97e726..d855a4da90 100644 --- a/cpukit/libmisc/cpuuse/cpuusagedata.c +++ b/cpukit/libmisc/cpuuse/cpuusagedata.c @@ -20,6 +20,6 @@ #include "config.h" #endif -#include <rtems/cpuuse.h> +#include "cpuuseimpl.h" Timestamp_Control CPU_usage_Uptime_at_last_reset; diff --git a/cpukit/libmisc/cpuuse/cpuusagereport.c b/cpukit/libmisc/cpuuse/cpuusagereport.c index 5200352f96..2a6eaf348b 100644 --- a/cpukit/libmisc/cpuuse/cpuusagereport.c +++ b/cpukit/libmisc/cpuuse/cpuusagereport.c @@ -30,6 +30,8 @@ #include <rtems/score/todimpl.h> #include <rtems/score/watchdogimpl.h> +#include "cpuuseimpl.h" + /* * rtems_cpu_usage_report */ diff --git a/cpukit/libmisc/cpuuse/cpuusagereset.c b/cpukit/libmisc/cpuuse/cpuusagereset.c index 74f273aded..abfd4db384 100644 --- a/cpukit/libmisc/cpuuse/cpuusagereset.c +++ b/cpukit/libmisc/cpuuse/cpuusagereset.c @@ -24,6 +24,8 @@ #include <rtems/score/schedulerimpl.h> #include <rtems/score/watchdogimpl.h> +#include "cpuuseimpl.h" + static void CPU_usage_Per_thread_handler( Thread_Control *the_thread ) diff --git a/cpukit/libmisc/cpuuse/cpuusagetop.c b/cpukit/libmisc/cpuuse/cpuusagetop.c index 2f48eb8f63..e300ee785c 100644 --- a/cpukit/libmisc/cpuuse/cpuusagetop.c +++ b/cpukit/libmisc/cpuuse/cpuusagetop.c @@ -40,6 +40,8 @@ #include <rtems/score/watchdogimpl.h> #include <rtems/score/wkspace.h> +#include "cpuuseimpl.h" + /* * Use a struct for all data to allow more than one top and to support the * thread iterator. diff --git a/cpukit/libmisc/cpuuse/cpuuse.h b/cpukit/libmisc/cpuuse/cpuuse.h index 1a3d2a7f3e..55777186f8 100644 --- a/cpukit/libmisc/cpuuse/cpuuse.h +++ b/cpukit/libmisc/cpuuse/cpuuse.h @@ -25,8 +25,6 @@ #include <rtems.h> #include <rtems/print.h> -#include <rtems/score/timestamp.h> - /** * @defgroup libmisc_cpuuse CPU Usage * @@ -37,8 +35,6 @@ extern "C" { #endif -extern Timestamp_Control CPU_usage_Uptime_at_last_reset; - /* * rtems_cpu_usage_report_with_handler */ diff --git a/cpukit/libmisc/cpuuse/cpuuseimpl.h b/cpukit/libmisc/cpuuse/cpuuseimpl.h new file mode 100644 index 0000000000..32184c3636 --- /dev/null +++ b/cpukit/libmisc/cpuuse/cpuuseimpl.h @@ -0,0 +1,26 @@ +/* + * COPYRIGHT (c) 1989-2011. + * On-Line Applications Research Corporation (OAR). + * + * The license and distribution terms for this file may be + * found in the file LICENSE in this distribution or at + * http://www.rtems.org/license/LICENSE. + */ + +#ifndef __RTEMS_CPUUSEIMPL_h +#define __RTEMS_CPUUSEIMPL_h + +#include <rtems/score/timestamp.h> + +#ifdef __cplusplus +extern "C" { +#endif + +extern Timestamp_Control CPU_usage_Uptime_at_last_reset; + +#ifdef __cplusplus +} +#endif + +#endif +/* end of include file */ |