summaryrefslogtreecommitdiffstats
path: root/c/src/lib/libbsp/unix/posix
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2008-08-31 17:42:00 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2008-08-31 17:42:00 +0000
commite511e126268d719ec86f6633b17c47fa3ed27ac5 (patch)
treedf9d7fbd90ba1d32c99c90cf0f4c881ced36f926 /c/src/lib/libbsp/unix/posix
parent2008-08-31 Joel Sherrill <joel.sherrill@oarcorp.com> (diff)
downloadrtems-e511e126268d719ec86f6633b17c47fa3ed27ac5.tar.bz2
2008-08-31 Joel Sherrill <joel.sherrill@oarcorp.com>
* timer/timer.c: Eliminate empty function from every benchmark timer driver. Fix spelling.
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.c17
2 files changed, 11 insertions, 11 deletions
diff --git a/c/src/lib/libbsp/unix/posix/ChangeLog b/c/src/lib/libbsp/unix/posix/ChangeLog
index 32faad30c1..994c024345 100644
--- a/c/src/lib/libbsp/unix/posix/ChangeLog
+++ b/c/src/lib/libbsp/unix/posix/ChangeLog
@@ -1,5 +1,10 @@
2008-08-31 Joel Sherrill <joel.sherrill@oarcorp.com>
+ * timer/timer.c: Eliminate empty function from every benchmark timer
+ driver. Fix spelling.
+
+2008-08-31 Joel Sherrill <joel.sherrill@oarcorp.com>
+
* timer/timer.c: Rename timer driver methods to follow RTEMS
programming conventions.
diff --git a/c/src/lib/libbsp/unix/posix/timer/timer.c b/c/src/lib/libbsp/unix/posix/timer/timer.c
index 464f6b7ea9..4e14941212 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 benchmark_timerfind_average_overhead;
+rtems_boolean benchmark_timer_find_average_overhead;
-void benchmark_timerinitialize()
+void benchmark_timer_initialize()
{
gettimeofday( &Timer_start, &Time_zone );
}
@@ -34,7 +34,7 @@ void benchmark_timerinitialize()
/* (XX countdowns) to start/stop the timer. */
#define LEAST_VALID 10 /* Don't trust a value lower than this */
-int benchmark_timerread()
+int benchmark_timer_read()
{
int total;
@@ -48,7 +48,7 @@ int benchmark_timerread()
total += Timer_stop.tv_usec;
}
- if ( benchmark_timerfind_average_overhead == 1 )
+ if ( benchmark_timer_find_average_overhead == 1 )
return total; /* in countdown units */
else {
if ( total < LEAST_VALID )
@@ -57,14 +57,9 @@ int benchmark_timerread()
}
}
-rtems_status_code benchmark_timerempty_function( void )
-{
- return RTEMS_SUCCESSFUL;
-}
-
-void benchmark_timerdisable_subtracting_average_overhead(
+void benchmark_timer_disable_subtracting_average_overhead(
rtems_boolean find_flag
)
{
- benchmark_timerfind_average_overhead = find_flag;
+ benchmark_timer_find_average_overhead = find_flag;
}