mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2025-12-05 15:15:44 +00:00
2007-07-06 Joel Sherrill <joel.sherrill@OARcorp.com>
* nsecs/init.c: Change name to avoid any hint of the timer driver.
This commit is contained in:
@@ -1,3 +1,7 @@
|
||||
2007-07-06 Joel Sherrill <joel.sherrill@OARcorp.com>
|
||||
|
||||
* nsecs/init.c: Change name to avoid any hint of the timer driver.
|
||||
|
||||
2007-06-22 Joel Sherrill <joel.sherrill@OARcorp.com>
|
||||
|
||||
* nsecs/init.c: Do not make this test depend on the benchmark timer
|
||||
|
||||
@@ -42,7 +42,7 @@ void subtract_em(
|
||||
}
|
||||
|
||||
/* body below .. hoping it isn't inlined */
|
||||
void Empty_function();
|
||||
void dummy_function_empty_body_to_force_call();
|
||||
|
||||
rtems_task Init(
|
||||
rtems_task_argument argument
|
||||
@@ -116,7 +116,7 @@ rtems_task Init(
|
||||
int j, max = (index * 10000);
|
||||
rtems_clock_get_uptime( &start );
|
||||
for (j=0 ; j<max ; j++ )
|
||||
Empty_function();
|
||||
dummy_function_empty_body_to_force_call();
|
||||
rtems_clock_get_uptime( &stop );
|
||||
|
||||
subtract_em( &start, &stop, &diff );
|
||||
@@ -147,4 +147,4 @@ rtems_task Init(
|
||||
#include <rtems/confdefs.h>
|
||||
|
||||
/* put here hoping it won't get inlined */
|
||||
void Empty_function() {}
|
||||
void dummy_function_empty_body_to_force_call() {}
|
||||
|
||||
Reference in New Issue
Block a user