Changeset 1307e75 in rtems


Ignore:
Timestamp:
Dec 8, 2017, 6:15:12 PM (17 months ago)
Author:
Joel Sherrill <joel@…>
Branches:
master
Children:
8e8cf72
Parents:
21e96d66
git-author:
Joel Sherrill <joel@…> (12/08/17 18:15:12)
git-committer:
Joel Sherrill <joel@…> (12/08/17 18:16:14)
Message:

tm08: Do not use RTEMS_INTERRUPT_MASK for no reschedule case

Updates #3000.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • testsuites/tmtests/tm08/task1.c

    r21e96d66 r1307e75  
    7979{
    8080  rtems_status_code   status;
    81   uint32_t      index;
     81  uint32_t            index;
    8282  rtems_task_priority old_priority;
    8383  rtems_time_of_day   time;
    84   uint32_t      old_mode;
     84  rtems_mode          old_mode;
     85  rtems_mode          desired_mode;
    8586
    8687  benchmark_timer_initialize();
     
    141142  );
    142143
     144  desired_mode = old_mode;
     145
    143146  benchmark_timer_initialize();
    144147    for ( index=1 ; index <= OPERATION_COUNT ; index++ ) {
    145148      (void) rtems_task_mode(
    146         RTEMS_INTERRUPT_LEVEL(1),
    147         RTEMS_INTERRUPT_MASK,
     149        RTEMS_TIMESLICE_MASK,
     150        desired_mode,
    148151        &old_mode
    149152      );
    150153      (void) rtems_task_mode(
    151         RTEMS_INTERRUPT_LEVEL(0),
    152         RTEMS_INTERRUPT_MASK,
     154        RTEMS_TIMESLICE_MASK,
     155        desired_mode,
    153156        &old_mode
    154157      );
     
    184187  /* preempted by test_task1 */
    185188  benchmark_timer_initialize();
    186     (void)  rtems_task_mode( RTEMS_PREEMPT, RTEMS_PREEMPT_MASK, &old_mode );
     189    (void) rtems_task_mode( RTEMS_PREEMPT, RTEMS_PREEMPT_MASK, &old_mode );
    187190
    188191  build_time( &time, 1, 1, 1988, 0, 0, 0, 0 );
Note: See TracChangeset for help on using the changeset viewer.