summaryrefslogtreecommitdiffstats
path: root/c/src/lib/libbsp/unix/posix
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2008-08-31 16:47:17 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2008-08-31 16:47:17 +0000
commit424ee2ba6a59e0e7fdd05fb5ab7a0ee3843c8ddd (patch)
treeadad3c0933c2288b99c89e4aaf9c85a62371ca30 /c/src/lib/libbsp/unix/posix
parent2008-08-31 Joel Sherrill <joel.sherrill@oarcorp.com> (diff)
downloadrtems-424ee2ba6a59e0e7fdd05fb5ab7a0ee3843c8ddd.tar.bz2
2008-08-31 Joel Sherrill <joel.sherrill@oarcorp.com>
* timer/timer.c: Rename timer driver methods to follow RTEMS programming conventions.
Diffstat (limited to 'c/src/lib/libbsp/unix/posix')
-rw-r--r--c/src/lib/libbsp/unix/posix/ChangeLog5
-rw-r--r--c/src/lib/libbsp/unix/posix/timer/timer.c14
2 files changed, 12 insertions, 7 deletions
diff --git a/c/src/lib/libbsp/unix/posix/ChangeLog b/c/src/lib/libbsp/unix/posix/ChangeLog
index 448f349322..32faad30c1 100644
--- a/c/src/lib/libbsp/unix/posix/ChangeLog
+++ b/c/src/lib/libbsp/unix/posix/ChangeLog
@@ -1,3 +1,8 @@
+2008-08-31 Joel Sherrill <joel.sherrill@oarcorp.com>
+
+ * timer/timer.c: Rename timer driver methods to follow RTEMS
+ programming conventions.
+
2008-05-15 Joel Sherrill <joel.sherrill@OARcorp.com>
* startup/bspstart.c: Add capability for bootcard.c BSP Initialization
diff --git a/c/src/lib/libbsp/unix/posix/timer/timer.c b/c/src/lib/libbsp/unix/posix/timer/timer.c
index d2e784ed5a..464f6b7ea9 100644
--- a/c/src/lib/libbsp/unix/posix/timer/timer.c
+++ b/c/src/lib/libbsp/unix/posix/timer/timer.c
@@ -23,9 +23,9 @@ struct timeval Timer_start;
struct timeval Timer_stop;
struct timezone Time_zone;
-rtems_boolean Timer_driver_Find_average_overhead;
+rtems_boolean benchmark_timerfind_average_overhead;
-void Timer_initialize()
+void benchmark_timerinitialize()
{
gettimeofday( &Timer_start, &Time_zone );
}
@@ -34,7 +34,7 @@ void Timer_initialize()
/* (XX countdowns) to start/stop the timer. */
#define LEAST_VALID 10 /* Don't trust a value lower than this */
-int Read_timer()
+int benchmark_timerread()
{
int total;
@@ -48,7 +48,7 @@ int Read_timer()
total += Timer_stop.tv_usec;
}
- if ( Timer_driver_Find_average_overhead == 1 )
+ if ( benchmark_timerfind_average_overhead == 1 )
return total; /* in countdown units */
else {
if ( total < LEAST_VALID )
@@ -57,14 +57,14 @@ int Read_timer()
}
}
-rtems_status_code Empty_function( void )
+rtems_status_code benchmark_timerempty_function( void )
{
return RTEMS_SUCCESSFUL;
}
-void Set_find_average_overhead(
+void benchmark_timerdisable_subtracting_average_overhead(
rtems_boolean find_flag
)
{
- Timer_driver_Find_average_overhead = find_flag;
+ benchmark_timerfind_average_overhead = find_flag;
}