Changeset 6481405e in rtems


Ignore:
Timestamp:
May 24, 1996, 2:16:24 PM (24 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.8, 4.9, master
Children:
abd604a
Parents:
8442b4c7
Message:

added use of sporadic server scheduling parameters

Files:
14 edited

Legend:

Unmodified
Added
Removed
  • c/src/tests/psxtests/psxhdrs/pthread11.c

    r8442b4c7 r6481405e  
    3232  policy = SCHED_FIFO;
    3333  policy = SCHED_RR;
     34#ifdef _POSIX_SPORADIC_SERVER
     35  policy = SCHED_SPORADIC;
     36#endif
    3437
    3538  /*
     
    3841
    3942  param.sched_priority = 0;
     43#ifdef _POSIX_SPORADIC_SERVER
     44  param.ss_low_priority = 0;
     45  param.ss_replenish_period.tv_sec = 0;
     46  param.ss_replenish_period.tv_nsec = 0;
     47  param.ss_initial_budget.tv_sec = 0;
     48  param.ss_initial_budget.tv_nsec = 0;
     49#endif
    4050
    4151  result = pthread_setschedparam( thread, policy, &param );
  • c/src/tests/psxtests/psxhdrs/pthread17.c

    r8442b4c7 r6481405e  
    2929  policy = SCHED_RR;
    3030  policy = SCHED_OTHER;
     31#ifdef _POSIX_SPORADIC_SERVER
     32  policy = SCHED_SPORADIC;
     33#endif
    3134 
    3235  result = pthread_attr_setschedpolicy( &attr, policy );
  • c/src/tests/psxtests/psxhdrs/pthread22.c

    r8442b4c7 r6481405e  
    3030  policy = SCHED_FIFO;
    3131  policy = SCHED_RR;
     32#ifdef _POSIX_SPORADIC_SERVER
     33  policy = SCHED_SPORADIC;
     34#endif
     35
     36  /*
     37   *  really should use sched_get_priority_min() and sched_get_priority_max()
     38   */
    3239
    3340  param.sched_priority = 0;
     41#ifdef _POSIX_SPORADIC_SERVER
     42  param.ss_low_priority = 0;
     43  param.ss_replenish_period.tv_sec = 0;
     44  param.ss_replenish_period.tv_nsec = 0;
     45  param.ss_initial_budget.tv_sec = 0;
     46  param.ss_initial_budget.tv_nsec = 0;
     47#endif
    3448
    3549  result = pthread_setschedparam( thread, policy, &param );
  • c/src/tests/psxtests/psxhdrs/sched01.c

    r8442b4c7 r6481405e  
    2828  pid = 0;
    2929
     30  /*
     31   *  really should use sched_get_priority_min() and sched_get_priority_max()
     32   */
     33
    3034  param.sched_priority = 0;
     35#ifdef _POSIX_SPORADIC_SERVER
     36  param.ss_low_priority = 0;
     37  param.ss_replenish_period.tv_sec = 0;
     38  param.ss_replenish_period.tv_nsec = 0;
     39  param.ss_initial_budget.tv_sec = 0;
     40  param.ss_initial_budget.tv_nsec = 0;
     41#endif
    3142
    3243  result = sched_setparam( pid, &param );
  • c/src/tests/psxtests/psxhdrs/sched03.c

    r8442b4c7 r6481405e  
    3232  policy = SCHED_FIFO;
    3333  policy = SCHED_OTHER;
     34#ifdef _POSIX_SPORADIC_SERVER
     35  policy = SCHED_SPORADIC;
     36#endif
     37
     38  /*
     39   *  really should use sched_get_priority_min() and sched_get_priority_max()
     40   */
    3441
    3542  param.sched_priority = 0;
     43#ifdef _POSIX_SPORADIC_SERVER
     44  param.ss_low_priority = 0;
     45  param.ss_replenish_period.tv_sec = 0;
     46  param.ss_replenish_period.tv_nsec = 0;
     47  param.ss_initial_budget.tv_sec = 0;
     48  param.ss_initial_budget.tv_nsec = 0;
     49#endif
    3650
    3751  result = sched_setscheduler( pid, policy, &param );
  • c/src/tests/psxtests/psxhdrs/sched06.c

    r8442b4c7 r6481405e  
    2828  policy = SCHED_FIFO;
    2929  policy = SCHED_OTHER;
     30#ifdef _POSIX_SPORADIC_SERVER
     31  policy = SCHED_SPORADIC;
     32#endif
    3033
    3134  result = sched_get_priority_max( policy );
  • c/src/tests/psxtests/psxhdrs/sched07.c

    r8442b4c7 r6481405e  
    2828  policy = SCHED_FIFO;
    2929  policy = SCHED_OTHER;
     30#ifdef _POSIX_SPORADIC_SERVER
     31  policy = SCHED_SPORADIC;
     32#endif
    3033
    3134  result = sched_get_priority_min( policy );
  • testsuites/psxtests/psxhdrs/pthread11.c

    r8442b4c7 r6481405e  
    3232  policy = SCHED_FIFO;
    3333  policy = SCHED_RR;
     34#ifdef _POSIX_SPORADIC_SERVER
     35  policy = SCHED_SPORADIC;
     36#endif
    3437
    3538  /*
     
    3841
    3942  param.sched_priority = 0;
     43#ifdef _POSIX_SPORADIC_SERVER
     44  param.ss_low_priority = 0;
     45  param.ss_replenish_period.tv_sec = 0;
     46  param.ss_replenish_period.tv_nsec = 0;
     47  param.ss_initial_budget.tv_sec = 0;
     48  param.ss_initial_budget.tv_nsec = 0;
     49#endif
    4050
    4151  result = pthread_setschedparam( thread, policy, &param );
  • testsuites/psxtests/psxhdrs/pthread17.c

    r8442b4c7 r6481405e  
    2929  policy = SCHED_RR;
    3030  policy = SCHED_OTHER;
     31#ifdef _POSIX_SPORADIC_SERVER
     32  policy = SCHED_SPORADIC;
     33#endif
    3134 
    3235  result = pthread_attr_setschedpolicy( &attr, policy );
  • testsuites/psxtests/psxhdrs/pthread22.c

    r8442b4c7 r6481405e  
    3030  policy = SCHED_FIFO;
    3131  policy = SCHED_RR;
     32#ifdef _POSIX_SPORADIC_SERVER
     33  policy = SCHED_SPORADIC;
     34#endif
     35
     36  /*
     37   *  really should use sched_get_priority_min() and sched_get_priority_max()
     38   */
    3239
    3340  param.sched_priority = 0;
     41#ifdef _POSIX_SPORADIC_SERVER
     42  param.ss_low_priority = 0;
     43  param.ss_replenish_period.tv_sec = 0;
     44  param.ss_replenish_period.tv_nsec = 0;
     45  param.ss_initial_budget.tv_sec = 0;
     46  param.ss_initial_budget.tv_nsec = 0;
     47#endif
    3448
    3549  result = pthread_setschedparam( thread, policy, &param );
  • testsuites/psxtests/psxhdrs/sched01.c

    r8442b4c7 r6481405e  
    2828  pid = 0;
    2929
     30  /*
     31   *  really should use sched_get_priority_min() and sched_get_priority_max()
     32   */
     33
    3034  param.sched_priority = 0;
     35#ifdef _POSIX_SPORADIC_SERVER
     36  param.ss_low_priority = 0;
     37  param.ss_replenish_period.tv_sec = 0;
     38  param.ss_replenish_period.tv_nsec = 0;
     39  param.ss_initial_budget.tv_sec = 0;
     40  param.ss_initial_budget.tv_nsec = 0;
     41#endif
    3142
    3243  result = sched_setparam( pid, &param );
  • testsuites/psxtests/psxhdrs/sched03.c

    r8442b4c7 r6481405e  
    3232  policy = SCHED_FIFO;
    3333  policy = SCHED_OTHER;
     34#ifdef _POSIX_SPORADIC_SERVER
     35  policy = SCHED_SPORADIC;
     36#endif
     37
     38  /*
     39   *  really should use sched_get_priority_min() and sched_get_priority_max()
     40   */
    3441
    3542  param.sched_priority = 0;
     43#ifdef _POSIX_SPORADIC_SERVER
     44  param.ss_low_priority = 0;
     45  param.ss_replenish_period.tv_sec = 0;
     46  param.ss_replenish_period.tv_nsec = 0;
     47  param.ss_initial_budget.tv_sec = 0;
     48  param.ss_initial_budget.tv_nsec = 0;
     49#endif
    3650
    3751  result = sched_setscheduler( pid, policy, &param );
  • testsuites/psxtests/psxhdrs/sched06.c

    r8442b4c7 r6481405e  
    2828  policy = SCHED_FIFO;
    2929  policy = SCHED_OTHER;
     30#ifdef _POSIX_SPORADIC_SERVER
     31  policy = SCHED_SPORADIC;
     32#endif
    3033
    3134  result = sched_get_priority_max( policy );
  • testsuites/psxtests/psxhdrs/sched07.c

    r8442b4c7 r6481405e  
    2828  policy = SCHED_FIFO;
    2929  policy = SCHED_OTHER;
     30#ifdef _POSIX_SPORADIC_SERVER
     31  policy = SCHED_SPORADIC;
     32#endif
    3033
    3134  result = sched_get_priority_min( policy );
Note: See TracChangeset for help on using the changeset viewer.