diff options
-rw-r--r-- | testsuites/support/include/tmtests_empty_function.h | 25 | ||||
-rw-r--r-- | testsuites/support/src/tmtests_empty_function.c | 2 | ||||
-rw-r--r-- | testsuites/support/src/tmtests_support.c | 6 |
3 files changed, 27 insertions, 6 deletions
diff --git a/testsuites/support/include/tmtests_empty_function.h b/testsuites/support/include/tmtests_empty_function.h new file mode 100644 index 0000000000..766b266bfd --- /dev/null +++ b/testsuites/support/include/tmtests_empty_function.h @@ -0,0 +1,25 @@ +/* + * Prototypes for RTEMS tmtests_empty_function.c. + * + * COPYRIGHT (c) 2011, Ralf Corsépius, Ulm/Germany. + * + * The license and distribution terms for this file may be + * found in the file LICENSE in this distribution or at + * http://www.rtems.com/license/LICENSE. + * + * $Id$ + */ + +#ifndef _TMTESTS_EMPTY_FUNCTION_H +#define _TMTESTS_EMPTY_FUNCTION_H + +#include <rtems/rtems/status.h> + +extern rtems_status_code benchmark_timer_empty_function( void ); + +extern void benchmark_timer_empty_operation( + int iteration, + void *argument +); + +#endif /* _TMTESTS_EMPTY_FUNCTION_H */ diff --git a/testsuites/support/src/tmtests_empty_function.c b/testsuites/support/src/tmtests_empty_function.c index 9b4ad95b5a..6b3ba3c6b6 100644 --- a/testsuites/support/src/tmtests_empty_function.c +++ b/testsuites/support/src/tmtests_empty_function.c @@ -18,7 +18,7 @@ #include <rtems.h> -rtems_status_code benchmark_timer_empty_function( void ); +#include "tmtests_empty_function.h" rtems_status_code benchmark_timer_empty_function( void ) { diff --git a/testsuites/support/src/tmtests_support.c b/testsuites/support/src/tmtests_support.c index c3208427ec..4521b81d57 100644 --- a/testsuites/support/src/tmtests_support.c +++ b/testsuites/support/src/tmtests_support.c @@ -19,11 +19,7 @@ #include <rtems/timerdrv.h> #include "test_support.h" #include "timesys.h" - -extern void benchmark_timer_empty_operation( - int iteration, - void *argument -); +#include "tmtests_empty_function.h" void rtems_time_test_measure_operation( const char *description, |