Update of /cvsroot/linux-hls/hls/tests
In directory sc8-pr-cvs1:/tmp/cvs-serv6094/tests
Modified Files:
schedtest.c
Log Message:
Lot of changes....
- Unbreak the debugging stuff
- Some random cleanups
- Fixes in the RR scheduler (I hope... MAXIMUM_PRIORITY does not seem to be
a valid priority)
- Allow the RES scheduler to be scheduled (there's a fixme: some functions
still have to be properly implemented)
- change Q e T from long long to long in the RES scheduler
- Implement the "rt scheduler" stuff
Index: schedtest.c
===================================================================
RCS file: /cvsroot/linux-hls/hls/tests/schedtest.c,v
retrieving revision 1.1.1.1
retrieving revision 1.2
diff -C2 -d -r1.1.1.1 -r1.2
*** schedtest.c 27 Aug 2002 11:26:20 -0000 1.1.1.1
--- schedtest.c 8 Nov 2003 10:34:32 -0000 1.2
***************
*** 13,17 ****
#define US 50
! #define MAX 50
unsigned long int pin[2000], pout[2000];
--- 13,17 ----
#define US 50
! #define MAX 500
unsigned long int pin[2000], pout[2000];
***************
*** 38,42 ****
rsv.Amount = 300000;
rsv.Period = 1000000;
!
res = sched_setscheduler(getpid(), SCHED_HLS, &sp);
if (res < 0) {
--- 38,48 ----
rsv.Amount = 300000;
rsv.Period = 1000000;
! if (argc == 3) {
! rsv.Amount = atoi(argv[1]) * 10;
! rsv.Period = atoi(argv[2]) * 10;
! }
! printf("Setting up reservation with parameters (%d, %d)\n",
! rsv.Amount, rsv.Period);
!
res = sched_setscheduler(getpid(), SCHED_HLS, &sp);
if (res < 0) {
|