From bc11ec273dd03c7ea83617aadbb69a22281e4a4b Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Thu, 14 Sep 2006 15:07:19 +0000 Subject: 2006-09-14 Joel Sherrill * libmisc/cpuuse/cpuuse.c, libmisc/cpuuse/cpuuse.h: Promote CPU Usage to first class citizen. Rename to start with rtems_ and include documentation in user guide. --- cpukit/ChangeLog | 6 ++++++ cpukit/libmisc/cpuuse/cpuuse.c | 19 ++++++++----------- cpukit/libmisc/cpuuse/cpuuse.h | 14 +++++++------- 3 files changed, 21 insertions(+), 18 deletions(-) (limited to 'cpukit') diff --git a/cpukit/ChangeLog b/cpukit/ChangeLog index c1feff2c34..408b61741e 100644 --- a/cpukit/ChangeLog +++ b/cpukit/ChangeLog @@ -1,3 +1,9 @@ +2006-09-14 Joel Sherrill + + * libmisc/cpuuse/cpuuse.c, libmisc/cpuuse/cpuuse.h: Promote CPU Usage + to first class citizen. Rename to start with rtems_ and include + documentation in user guide. + 2006-09-13 Joel Sherrill * libnetworking/rtems/rtems_malloc_mbuf.c: Removed warning by adding diff --git a/cpukit/libmisc/cpuuse/cpuuse.c b/cpukit/libmisc/cpuuse/cpuuse.c index 92a46fe4b6..dbfe1dc6f7 100644 --- a/cpukit/libmisc/cpuuse/cpuuse.c +++ b/cpukit/libmisc/cpuuse/cpuuse.c @@ -1,15 +1,14 @@ /* * CPU Usage Reporter * - * COPYRIGHT (c) 1989-1999. 1996. + * COPYRIGHT (c) 1989-2006 * 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.com/license/LICENSE. * - * cpuuse.c,v 1.20 2004/04/17 08:12:01 ralf Exp - * + * $Id$ */ #ifdef HAVE_CONFIG_H @@ -31,10 +30,10 @@ uint32_t CPU_usage_Ticks_at_last_reset; /*PAGE * - * CPU_usage_Dump + * rtems_cpu_usage_report */ -void CPU_usage_Dump( void ) +void rtems_cpu_usage_report( void ) { uint32_t i; uint32_t api_index; @@ -123,11 +122,6 @@ void CPU_usage_Dump( void ) fprintf(stdout, "\nTotal Units = %" PRId32 "\n", total_units ); } -/*PAGE - * - * CPU_usage_Reset - */ - static void CPU_usage_Per_thread_handler( Thread_Control *the_thread ) @@ -135,7 +129,10 @@ static void CPU_usage_Per_thread_handler( the_thread->ticks_executed = 0; } -void CPU_usage_Reset( void ) +/* + * rtems_cpu_usage_reset + */ +void rtems_cpu_usage_reset( void ) { CPU_usage_Ticks_at_last_reset = _Watchdog_Ticks_since_boot; diff --git a/cpukit/libmisc/cpuuse/cpuuse.h b/cpukit/libmisc/cpuuse/cpuuse.h index de874e0fcd..994c80e90a 100644 --- a/cpukit/libmisc/cpuuse/cpuuse.h +++ b/cpukit/libmisc/cpuuse/cpuuse.h @@ -3,7 +3,7 @@ * This include file contains information necessary to utilize * and install the cpu usage reporting mechanism. * - * COPYRIGHT (c) 1989-1999. 1996. + * COPYRIGHT (c) 1989-2006. * On-Line Applications Research Corporation (OAR). * * The license and distribution terms for this file may be @@ -13,24 +13,24 @@ * $Id$ */ -#ifndef __CPU_USE_h -#define __CPU_USE_h +#ifndef __RTEMS_CPUUSE_h +#define __RTEMS_CPUUSE_h #ifdef __cplusplus extern "C" { #endif /* - * CPU_usage_Dump + * rtems_cpu_usage_report */ -void CPU_usage_Dump( void ); +void rtems_cpu_usage_report( void ); /* - * CPU_usage_Reset + * rtems_cpu_usage_reset */ -void CPU_usage_Reset( void ); +void rtems_cpu_usage_reset( void ); #ifdef __cplusplus } -- cgit v1.2.3