summaryrefslogtreecommitdiffstats
path: root/c/src/lib/libbsp/i386/i386ex
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2008-08-31 18:18:17 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2008-08-31 18:18:17 +0000
commit25c62b02bc8fc9e66c1735e562e91acaa94abbe3 (patch)
tree1310e9509ef176a712ba98e4b2664da7d9cc4d63 /c/src/lib/libbsp/i386/i386ex
parent2008-08-31 Joel Sherrill <joel.sherrill@oarcorp.com> (diff)
downloadrtems-25c62b02bc8fc9e66c1735e562e91acaa94abbe3.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/i386/i386ex')
-rw-r--r--c/src/lib/libbsp/i386/i386ex/ChangeLog5
-rw-r--r--c/src/lib/libbsp/i386/i386ex/timer/timer.c19
2 files changed, 12 insertions, 12 deletions
diff --git a/c/src/lib/libbsp/i386/i386ex/ChangeLog b/c/src/lib/libbsp/i386/i386ex/ChangeLog
index 4266931270..b876f1b4d6 100644
--- a/c/src/lib/libbsp/i386/i386ex/ChangeLog
+++ b/c/src/lib/libbsp/i386/i386ex/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/i386/i386ex/timer/timer.c b/c/src/lib/libbsp/i386/i386ex/timer/timer.c
index 0dfd77a437..ccaef6585d 100644
--- a/c/src/lib/libbsp/i386/i386ex/timer/timer.c
+++ b/c/src/lib/libbsp/i386/i386ex/timer/timer.c
@@ -28,7 +28,7 @@
#include <stdlib.h>
int Ttimer_val;
-rtems_boolean benchmark_timerfind_average_overhead;
+rtems_boolean benchmark_timer_find_average_overhead;
extern void timerisr(void);
extern int ClockIsOn(const rtems_raw_irq_connect_data*);
@@ -81,7 +81,7 @@ void Timer_exit(void)
}
}
-void benchmark_timerinitialize(void)
+void benchmark_timer_initialize(void)
{
static rtems_boolean First = TRUE;
@@ -92,7 +92,7 @@ void benchmark_timerinitialize(void)
atexit(Timer_exit); /* Try not to hose the system at exit. */
if (!i386_set_idt_entry (&timer_raw_irq_data)) {
- printk("benchmark_timerinitialize: raw handler installation failed\n");
+ printk("benchmark_timer_initialize: raw handler installation failed\n");
rtems_fatal_error_occurred(1);
}
}
@@ -107,7 +107,7 @@ void benchmark_timerinitialize(void)
/* (3 ticks) to start/stop the timer. */
#define LEAST_VALID 4 /* Don't trust a value lower than this */
-int benchmark_timerread(void)
+int benchmark_timer_read(void)
{
register uint32_t clicks;
register uint32_t total;
@@ -124,7 +124,7 @@ int benchmark_timerread(void)
/* ??? Is "do not restore old vector" causing problems? */
- if ( benchmark_timerfind_average_overhead == 1 )
+ if ( benchmark_timer_find_average_overhead == 1 )
return total; /* in one microsecond units */
else {
@@ -134,14 +134,9 @@ int benchmark_timerread(void)
}
}
-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;
}