forked from Imagelibrary/rtems
Use correct prototype of benchmark_timer_read()
This change starts with removing the effectively empty file timerdrv.h. The prototypes for benchmark_timer_XXX() were in btimer.h which was not universally used. Thus every use of timerdrv.h had to be changed to btimer.h. Then the prototypes for benchmark_timer_read() had to be adjusted to return benchmark_timer_t rather than int or uint32_t. I took this opportunity to also correct the file headers to separate the copyright from the file description comments which is needed to ensure the copyright isn't propagated into Doxygen output.
This commit is contained in:
@@ -12,7 +12,7 @@
|
||||
#endif
|
||||
|
||||
#include <timesys.h>
|
||||
#include <rtems/timerdrv.h>
|
||||
#include <rtems/btimer.h>
|
||||
#include "test_support.h"
|
||||
#include <pthread.h>
|
||||
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
|
||||
#include <timesys.h>
|
||||
#include <tmacros.h>
|
||||
#include <rtems/timerdrv.h>
|
||||
#include <rtems/btimer.h>
|
||||
#include "test_support.h"
|
||||
|
||||
#include <pthread.h>
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
#include "test_support.h"
|
||||
#include <pthread.h>
|
||||
#include <sched.h>
|
||||
#include <rtems/timerdrv.h>
|
||||
#include <rtems/btimer.h>
|
||||
|
||||
const char rtems_test_name[] = "PSXTMBARRIER 03";
|
||||
|
||||
|
||||
@@ -15,7 +15,7 @@
|
||||
#include "test_support.h"
|
||||
#include <pthread.h>
|
||||
#include <sched.h>
|
||||
#include <rtems/timerdrv.h>
|
||||
#include <rtems/btimer.h>
|
||||
|
||||
const char rtems_test_name[] = "PSXTMBARRIER 04";
|
||||
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
#include "test_support.h"
|
||||
#include <pthread.h>
|
||||
#include <sched.h>
|
||||
#include <rtems/timerdrv.h>
|
||||
#include <rtems/btimer.h>
|
||||
|
||||
const char rtems_test_name[] = "PSXTMCOND 01";
|
||||
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
|
||||
#include <timesys.h>
|
||||
#include <pthread.h>
|
||||
#include <rtems/timerdrv.h>
|
||||
#include <rtems/btimer.h>
|
||||
#include "test_support.h"
|
||||
|
||||
const char rtems_test_name[] = "PSXTMCOND 02";
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
#include "test_support.h"
|
||||
#include <pthread.h>
|
||||
#include <sched.h>
|
||||
#include <rtems/timerdrv.h>
|
||||
#include <rtems/btimer.h>
|
||||
|
||||
const char rtems_test_name[] = "PSXTMCOND 03";
|
||||
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
#include "test_support.h"
|
||||
#include <pthread.h>
|
||||
#include <sched.h>
|
||||
#include <rtems/timerdrv.h>
|
||||
#include <rtems/btimer.h>
|
||||
|
||||
const char rtems_test_name[] = "PSXTMCOND 04";
|
||||
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
|
||||
#include <timesys.h>
|
||||
#include <pthread.h>
|
||||
#include <rtems/timerdrv.h>
|
||||
#include <rtems/btimer.h>
|
||||
#include "test_support.h"
|
||||
|
||||
const char rtems_test_name[] = "PSXTMCOND 05";
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
#include "test_support.h"
|
||||
#include <pthread.h>
|
||||
#include <sched.h>
|
||||
#include <rtems/timerdrv.h>
|
||||
#include <rtems/btimer.h>
|
||||
|
||||
#define N 5
|
||||
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
#include "test_support.h"
|
||||
#include <pthread.h>
|
||||
#include <sched.h>
|
||||
#include <rtems/timerdrv.h>
|
||||
#include <rtems/btimer.h>
|
||||
|
||||
#define N 1
|
||||
|
||||
|
||||
@@ -30,7 +30,7 @@
|
||||
#include <sched.h>
|
||||
#include <timesys.h>
|
||||
#include <tmacros.h>
|
||||
#include <rtems/timerdrv.h>
|
||||
#include <rtems/btimer.h>
|
||||
#include "test_support.h"
|
||||
|
||||
#include <pthread.h>
|
||||
|
||||
@@ -12,7 +12,7 @@
|
||||
#endif
|
||||
|
||||
#include <timesys.h>
|
||||
#include <rtems/timerdrv.h>
|
||||
#include <rtems/btimer.h>
|
||||
#include <errno.h>
|
||||
#include <pthread.h>
|
||||
#include "test_support.h"
|
||||
|
||||
@@ -12,7 +12,7 @@
|
||||
#endif
|
||||
|
||||
#include <timesys.h>
|
||||
#include <rtems/timerdrv.h>
|
||||
#include <rtems/btimer.h>
|
||||
#include <errno.h>
|
||||
#include <pthread.h>
|
||||
#include "test_support.h"
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
#include <fcntl.h>
|
||||
#include <timesys.h>
|
||||
#include <errno.h>
|
||||
#include <rtems/timerdrv.h>
|
||||
#include <rtems/btimer.h>
|
||||
#include "test_support.h"
|
||||
#include <tmacros.h>
|
||||
#include <mqueue.h>
|
||||
|
||||
@@ -12,7 +12,7 @@
|
||||
#endif
|
||||
|
||||
#include <timesys.h>
|
||||
#include <rtems/timerdrv.h>
|
||||
#include <rtems/btimer.h>
|
||||
#include <errno.h>
|
||||
#include <pthread.h>
|
||||
#include "test_support.h"
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
#include "test_support.h"
|
||||
#include <pthread.h>
|
||||
#include <sched.h>
|
||||
#include <rtems/timerdrv.h>
|
||||
#include <rtems/btimer.h>
|
||||
|
||||
const char rtems_test_name[] = "PSXTMMUTEX 02";
|
||||
|
||||
|
||||
@@ -12,7 +12,7 @@
|
||||
#endif
|
||||
|
||||
#include <timesys.h>
|
||||
#include <rtems/timerdrv.h>
|
||||
#include <rtems/btimer.h>
|
||||
#include <errno.h>
|
||||
#include <pthread.h>
|
||||
#include "test_support.h"
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
|
||||
#include <timesys.h>
|
||||
#include <tmacros.h>
|
||||
#include <rtems/timerdrv.h>
|
||||
#include <rtems/btimer.h>
|
||||
#include "test_support.h"
|
||||
|
||||
#include <pthread.h>
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
#include "test_support.h"
|
||||
#include <pthread.h>
|
||||
#include <sched.h>
|
||||
#include <rtems/timerdrv.h>
|
||||
#include <rtems/btimer.h>
|
||||
|
||||
const char rtems_test_name[] = "PSXTMMUTEX 05";
|
||||
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
#include "test_support.h"
|
||||
#include <pthread.h>
|
||||
#include <sched.h>
|
||||
#include <rtems/timerdrv.h>
|
||||
#include <rtems/btimer.h>
|
||||
|
||||
const char rtems_test_name[] = "PSXTMMUTEX 06";
|
||||
|
||||
|
||||
@@ -12,7 +12,7 @@
|
||||
#endif
|
||||
|
||||
#include <timesys.h>
|
||||
#include <rtems/timerdrv.h>
|
||||
#include <rtems/btimer.h>
|
||||
#include <errno.h>
|
||||
#include <pthread.h>
|
||||
#include "test_support.h"
|
||||
|
||||
@@ -12,7 +12,7 @@
|
||||
#endif
|
||||
|
||||
#include <timesys.h>
|
||||
#include <rtems/timerdrv.h>
|
||||
#include <rtems/btimer.h>
|
||||
#include "test_support.h"
|
||||
|
||||
const char rtems_test_name[] = "PSXTMNANOSLEEP 01";
|
||||
|
||||
@@ -12,7 +12,7 @@
|
||||
#endif
|
||||
|
||||
#include <timesys.h>
|
||||
#include <rtems/timerdrv.h>
|
||||
#include <rtems/btimer.h>
|
||||
#include "test_support.h"
|
||||
|
||||
#include <pthread.h>
|
||||
|
||||
@@ -12,7 +12,7 @@
|
||||
#endif
|
||||
#include <errno.h>
|
||||
#include <timesys.h>
|
||||
#include <rtems/timerdrv.h>
|
||||
#include <rtems/btimer.h>
|
||||
#include <pthread.h>
|
||||
#include "test_support.h"
|
||||
|
||||
|
||||
@@ -16,7 +16,7 @@
|
||||
#include <tmacros.h>
|
||||
#include <pthread.h>
|
||||
#include <sched.h>
|
||||
#include <rtems/timerdrv.h>
|
||||
#include <rtems/btimer.h>
|
||||
#include "test_support.h"
|
||||
|
||||
const char rtems_test_name[] = "PSXTMRWLOCK 02";
|
||||
|
||||
@@ -16,7 +16,7 @@
|
||||
#include <tmacros.h>
|
||||
#include <sched.h>
|
||||
#include <pthread.h>
|
||||
#include <rtems/timerdrv.h>
|
||||
#include <rtems/btimer.h>
|
||||
#include "test_support.h"
|
||||
|
||||
const char rtems_test_name[] = "PSXTMRWLOCK 03";
|
||||
|
||||
@@ -16,7 +16,7 @@
|
||||
#include <tmacros.h>
|
||||
#include <sched.h>
|
||||
#include <pthread.h>
|
||||
#include <rtems/timerdrv.h>
|
||||
#include <rtems/btimer.h>
|
||||
#include "test_support.h"
|
||||
|
||||
const char rtems_test_name[] = "PSXTMRWLOCK 04";
|
||||
|
||||
@@ -16,7 +16,7 @@
|
||||
#include <tmacros.h>
|
||||
#include <sched.h>
|
||||
#include <pthread.h>
|
||||
#include <rtems/timerdrv.h>
|
||||
#include <rtems/btimer.h>
|
||||
#include "test_support.h"
|
||||
|
||||
const char rtems_test_name[] = "PSXTMRWLOCK 05";
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
#include <tmacros.h>
|
||||
#include <timesys.h>
|
||||
#include "test_support.h"
|
||||
#include <rtems/timerdrv.h>
|
||||
#include <rtems/btimer.h>
|
||||
|
||||
const char rtems_test_name[] = "PSXTMRWLOCK 06";
|
||||
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
#include "test_support.h"
|
||||
#include <pthread.h>
|
||||
#include <sched.h>
|
||||
#include <rtems/timerdrv.h>
|
||||
#include <rtems/btimer.h>
|
||||
|
||||
const char rtems_test_name[] = "PSXTMRWLOCK 07";
|
||||
|
||||
|
||||
@@ -16,7 +16,7 @@
|
||||
#include <semaphore.h>
|
||||
#include <tmacros.h>
|
||||
#include <timesys.h>
|
||||
#include <rtems/timerdrv.h>
|
||||
#include <rtems/btimer.h>
|
||||
#include "test_support.h"
|
||||
|
||||
const char rtems_test_name[] = "PSXTMSEM 01";
|
||||
|
||||
@@ -16,7 +16,7 @@
|
||||
#include <semaphore.h>
|
||||
#include <tmacros.h>
|
||||
#include <timesys.h>
|
||||
#include <rtems/timerdrv.h>
|
||||
#include <rtems/btimer.h>
|
||||
#include "test_support.h"
|
||||
|
||||
const char rtems_test_name[] = "PSXTMSEM 02";
|
||||
|
||||
@@ -16,7 +16,7 @@
|
||||
#include <semaphore.h>
|
||||
#include <tmacros.h>
|
||||
#include <timesys.h>
|
||||
#include <rtems/timerdrv.h>
|
||||
#include <rtems/btimer.h>
|
||||
#include "test_support.h"
|
||||
#include <pthread.h>
|
||||
#include <sched.h>
|
||||
|
||||
@@ -20,7 +20,7 @@
|
||||
#include "test_support.h"
|
||||
#include <pthread.h>
|
||||
#include <sched.h>
|
||||
#include <rtems/timerdrv.h>
|
||||
#include <rtems/btimer.h>
|
||||
|
||||
const char rtems_test_name[] = "PSXTMSEM 04";
|
||||
|
||||
|
||||
@@ -20,7 +20,7 @@
|
||||
#include "test_support.h"
|
||||
#include <pthread.h>
|
||||
#include <sched.h>
|
||||
#include <rtems/timerdrv.h>
|
||||
#include <rtems/btimer.h>
|
||||
|
||||
const char rtems_test_name[] = "PSXTMSEM 05";
|
||||
|
||||
|
||||
@@ -12,7 +12,7 @@
|
||||
#endif
|
||||
|
||||
#include <timesys.h>
|
||||
#include <rtems/timerdrv.h>
|
||||
#include <rtems/btimer.h>
|
||||
#include "test_support.h"
|
||||
|
||||
#include <unistd.h>
|
||||
|
||||
@@ -12,7 +12,7 @@
|
||||
#endif
|
||||
|
||||
#include <timesys.h>
|
||||
#include <rtems/timerdrv.h>
|
||||
#include <rtems/btimer.h>
|
||||
#include "test_support.h"
|
||||
|
||||
#include <pthread.h>
|
||||
|
||||
@@ -14,7 +14,7 @@
|
||||
#include <timesys.h>
|
||||
#include <pthread.h>
|
||||
#include <sched.h>
|
||||
#include <rtems/timerdrv.h>
|
||||
#include <rtems/btimer.h>
|
||||
#include "test_support.h"
|
||||
|
||||
const char rtems_test_name[] = "PSXTMTHREAD 02";
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
#include "test_support.h"
|
||||
#include <pthread.h>
|
||||
#include <sched.h>
|
||||
#include <rtems/timerdrv.h>
|
||||
#include <rtems/btimer.h>
|
||||
|
||||
const char rtems_test_name[] = "PSXTMTHREAD 03";
|
||||
|
||||
|
||||
@@ -14,7 +14,7 @@
|
||||
#include <timesys.h>
|
||||
#include <pthread.h>
|
||||
#include <sched.h>
|
||||
#include <rtems/timerdrv.h>
|
||||
#include <rtems/btimer.h>
|
||||
#include "test_support.h"
|
||||
|
||||
const char rtems_test_name[] = "PSXTMTHREAD 04";
|
||||
|
||||
@@ -15,7 +15,7 @@
|
||||
#include <timesys.h>
|
||||
#include <pthread.h>
|
||||
#include <sched.h>
|
||||
#include <rtems/timerdrv.h>
|
||||
#include <rtems/btimer.h>
|
||||
#include "test_support.h"
|
||||
|
||||
const char rtems_test_name[] = "PSXTMTHREAD 05";
|
||||
|
||||
@@ -16,7 +16,7 @@
|
||||
#include <timesys.h>
|
||||
#include <pthread.h>
|
||||
#include <sched.h>
|
||||
#include <rtems/timerdrv.h>
|
||||
#include <rtems/btimer.h>
|
||||
#include "test_support.h"
|
||||
|
||||
const char rtems_test_name[] = "PSXTMTHREAD 06";
|
||||
|
||||
@@ -4,8 +4,8 @@
|
||||
* This file's license is 2-clause BSD as in this distribution's LICENSE file.
|
||||
*/
|
||||
|
||||
#include <rtems/timerdrv.h>
|
||||
#include <timesys.h>
|
||||
#include <rtems/btimer.h>
|
||||
|
||||
const char rtems_test_name[] = "RHDEADLOCKBRK";
|
||||
|
||||
|
||||
@@ -15,8 +15,8 @@
|
||||
|
||||
#define CONFIGURE_INIT
|
||||
#include <timesys.h>
|
||||
#include <rtems/btimer.h>
|
||||
#include <rtems/score/schedulerpriorityimpl.h>
|
||||
#include <rtems/timerdrv.h>
|
||||
#include <coverhd.h>
|
||||
|
||||
/* configuration information */
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
#endif
|
||||
|
||||
#include <timesys.h>
|
||||
#include <rtems/timerdrv.h>
|
||||
#include <rtems/btimer.h>
|
||||
|
||||
const char rtems_test_name[] = "RHMLATENCY";
|
||||
|
||||
|
||||
@@ -4,8 +4,8 @@
|
||||
* This file's license is 2-clause BSD as in this distribution's LICENSE file.
|
||||
*/
|
||||
|
||||
#include <rtems/timerdrv.h>
|
||||
#include <timesys.h>
|
||||
#include <rtems/btimer.h>
|
||||
|
||||
const char rtems_test_name[] = "RHSEMSHUFFLE";
|
||||
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
*/
|
||||
|
||||
#include <timesys.h>
|
||||
#include <rtems/timerdrv.h>
|
||||
#include <rtems/btimer.h>
|
||||
|
||||
const char rtems_test_name[] = "RHTASKPREEMPT";
|
||||
|
||||
|
||||
@@ -4,8 +4,8 @@
|
||||
* This file's license is 2-clause BSD as in this distribution's LICENSE file.
|
||||
*/
|
||||
|
||||
#include <rtems/timerdrv.h>
|
||||
#include <timesys.h>
|
||||
#include <rtems/btimer.h>
|
||||
|
||||
#define BENCHMARKS 50000
|
||||
|
||||
|
||||
@@ -11,10 +11,8 @@
|
||||
#include "config.h"
|
||||
#endif
|
||||
|
||||
#include <rtems/btimer.h>
|
||||
|
||||
#include <bsp.h>
|
||||
#include <rtems/timerdrv.h>
|
||||
#include <rtems/btimer.h>
|
||||
#include "test_support.h"
|
||||
#include "timesys.h"
|
||||
#include "tmtests_empty_function.h"
|
||||
|
||||
Reference in New Issue
Block a user