From 108ea77f6990551aa91fa9b44e02d592480af0c1 Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Sun, 7 Aug 2016 12:17:41 -0500 Subject: posix_api/psx_sched_report/test.c: Uses default configuration now. --- posix_api/psx_sched_report/test.c | 35 ++++++----------------------------- 1 file changed, 6 insertions(+), 29 deletions(-) diff --git a/posix_api/psx_sched_report/test.c b/posix_api/psx_sched_report/test.c index 8d0b9b3..f9cab61 100644 --- a/posix_api/psx_sched_report/test.c +++ b/posix_api/psx_sched_report/test.c @@ -1,5 +1,5 @@ /* - * Simple test program -- simplified version of sample test hello. + * Program to print POSIX Scheduler Characteristics */ #include @@ -30,39 +30,16 @@ void print_sched_info( (long)t.tv_sec, (long)t.tv_nsec ); } - -#if defined(__rtems__) - #include - -rtems_task Init( - rtems_task_argument ignored -) -#else int main() -#endif { print_sched_info( "SCHED_OTHER", SCHED_OTHER ); print_sched_info( "SCHED_FIFO", SCHED_FIFO ); print_sched_info( "SCHED_RR", SCHED_RR ); +#if defined(SCHED_SPORADIC) + print_sched_info( "SCHED_SPORADIC", SCHED_RR ); +#else + printf( "SCHED_SPORADIC is not supported\n" ); +#endif exit( 0 ); } - -#if defined(__rtems__) -/* configuration information */ - -/* NOTICE: the clock driver is explicitly disabled */ -#define CONFIGURE_APPLICATION_DOES_NOT_NEED_CLOCK_DRIVER -#define CONFIGURE_APPLICATION_NEEDS_CONSOLE_DRIVER - -#define CONFIGURE_RTEMS_INIT_TASKS_TABLE -#define CONFIGURE_MICROSECONDS_PER_TICK 1000 -#define CONFIGURE_TICKS_PER_TIMESLICE 1 -#define CONFIGURE_MAXIMUM_TASKS 1 - -#define CONFIGURE_INIT - -#include -#endif - -/* end of file */ -- cgit v1.2.3