summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoel Sherrill <joel@rtems.org>2016-08-07 12:17:41 -0500
committerJoel Sherrill <joel@rtems.org>2016-08-07 12:18:42 -0500
commit108ea77f6990551aa91fa9b44e02d592480af0c1 (patch)
treec47e3d40def48ba8f0619a2f44fff26349e6c5c1
parentaec2d18bc942a2568903398e42d94e589396912b (diff)
posix_api/psx_sched_report/test.c: Uses default configuration now.
-rw-r--r--posix_api/psx_sched_report/test.c35
1 files 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 <stdlib.h>
@@ -30,39 +30,16 @@ void print_sched_info(
(long)t.tv_sec, (long)t.tv_nsec );
}
-
-#if defined(__rtems__)
- #include <bsp.h>
-
-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 <rtems/confdefs.h>
-#endif
-
-/* end of file */