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:
Joel Sherrill
2014-09-04 08:59:49 -05:00
parent c080c3434b
commit 8fbe2e69b5
111 changed files with 311 additions and 371 deletions

View File

@@ -12,7 +12,7 @@
#endif
#include <timesys.h>
#include <rtems/timerdrv.h>
#include <rtems/btimer.h>
#include "test_support.h"
#include <pthread.h>

View File

@@ -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>

View File

@@ -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";

View File

@@ -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";

View File

@@ -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";

View File

@@ -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";

View File

@@ -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";

View File

@@ -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";

View File

@@ -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";

View File

@@ -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

View File

@@ -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

View File

@@ -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>

View File

@@ -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"

View File

@@ -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"

View File

@@ -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>

View File

@@ -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"

View File

@@ -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";

View File

@@ -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"

View File

@@ -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>

View File

@@ -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";

View File

@@ -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";

View File

@@ -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"

View File

@@ -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";

View File

@@ -12,7 +12,7 @@
#endif
#include <timesys.h>
#include <rtems/timerdrv.h>
#include <rtems/btimer.h>
#include "test_support.h"
#include <pthread.h>

View File

@@ -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"

View File

@@ -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";

View File

@@ -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";

View File

@@ -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";

View File

@@ -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";

View File

@@ -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";

View File

@@ -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";

View File

@@ -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";

View File

@@ -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";

View File

@@ -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>

View File

@@ -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";

View File

@@ -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";

View File

@@ -12,7 +12,7 @@
#endif
#include <timesys.h>
#include <rtems/timerdrv.h>
#include <rtems/btimer.h>
#include "test_support.h"
#include <unistd.h>

View File

@@ -12,7 +12,7 @@
#endif
#include <timesys.h>
#include <rtems/timerdrv.h>
#include <rtems/btimer.h>
#include "test_support.h"
#include <pthread.h>

View File

@@ -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";

View File

@@ -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";

View File

@@ -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";

View File

@@ -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";

View File

@@ -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";

View File

@@ -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";

View File

@@ -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 */

View File

@@ -9,7 +9,7 @@
#endif
#include <timesys.h>
#include <rtems/timerdrv.h>
#include <rtems/btimer.h>
const char rtems_test_name[] = "RHMLATENCY";

View File

@@ -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";

View File

@@ -5,7 +5,7 @@
*/
#include <timesys.h>
#include <rtems/timerdrv.h>
#include <rtems/btimer.h>
const char rtems_test_name[] = "RHTASKPREEMPT";

View File

@@ -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

View File

@@ -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"