From 35f52a69829e2a1e3180949ca38592d2b13034de Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Sun, 31 Aug 2008 16:07:58 +0000 Subject: 2008-08-31 Joel Sherrill * timer/timer.c: Rename timer driver methods to follow RTEMS programming conventions. --- c/src/lib/libbsp/i386/i386ex/ChangeLog | 5 +++++ c/src/lib/libbsp/i386/i386ex/timer/timer.c | 16 ++++++++-------- 2 files changed, 13 insertions(+), 8 deletions(-) (limited to 'c/src/lib/libbsp/i386/i386ex') diff --git a/c/src/lib/libbsp/i386/i386ex/ChangeLog b/c/src/lib/libbsp/i386/i386ex/ChangeLog index 273b393096..4266931270 100644 --- a/c/src/lib/libbsp/i386/i386ex/ChangeLog +++ b/c/src/lib/libbsp/i386/i386ex/ChangeLog @@ -1,3 +1,8 @@ +2008-08-31 Joel Sherrill + + * timer/timer.c: Rename timer driver methods to follow RTEMS + programming conventions. + 2008-08-16 Ralf Corsépius * timer/timer.c: Add missing prototypes. diff --git a/c/src/lib/libbsp/i386/i386ex/timer/timer.c b/c/src/lib/libbsp/i386/i386ex/timer/timer.c index de0bc322fe..0dfd77a437 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 int Ttimer_val; -rtems_boolean Timer_driver_Find_average_overhead; +rtems_boolean benchmark_timerfind_average_overhead; extern void timerisr(void); extern int ClockIsOn(const rtems_raw_irq_connect_data*); @@ -81,7 +81,7 @@ void Timer_exit(void) } } -void Timer_initialize(void) +void benchmark_timerinitialize(void) { static rtems_boolean First = TRUE; @@ -92,7 +92,7 @@ void Timer_initialize(void) atexit(Timer_exit); /* Try not to hose the system at exit. */ if (!i386_set_idt_entry (&timer_raw_irq_data)) { - printk("Timer_initialize: raw handler installation failed\n"); + printk("benchmark_timerinitialize: raw handler installation failed\n"); rtems_fatal_error_occurred(1); } } @@ -107,7 +107,7 @@ void Timer_initialize(void) /* (3 ticks) to start/stop the timer. */ #define LEAST_VALID 4 /* Don't trust a value lower than this */ -int Read_timer(void) +int benchmark_timerread(void) { register uint32_t clicks; register uint32_t total; @@ -124,7 +124,7 @@ int Read_timer(void) /* ??? Is "do not restore old vector" causing problems? */ - if ( Timer_driver_Find_average_overhead == 1 ) + if ( benchmark_timerfind_average_overhead == 1 ) return total; /* in one microsecond units */ else { @@ -134,14 +134,14 @@ int Read_timer(void) } } -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; } -- cgit v1.2.3