tm08: Do not use RTEMS_INTERRUPT_MASK for no reschedule case

Updates #3000.
This commit is contained in:
Joel Sherrill
2017-12-08 12:15:12 -06:00
parent 21e96d6648
commit 1307e759e3

View File

@@ -81,7 +81,8 @@ rtems_task test_task(
uint32_t index;
rtems_task_priority old_priority;
rtems_time_of_day time;
uint32_t old_mode;
rtems_mode old_mode;
rtems_mode desired_mode;
benchmark_timer_initialize();
for ( index=1 ; index <= OPERATION_COUNT ; index++ )
@@ -140,16 +141,18 @@ rtems_task test_task(
0
);
desired_mode = old_mode;
benchmark_timer_initialize();
for ( index=1 ; index <= OPERATION_COUNT ; index++ ) {
(void) rtems_task_mode(
RTEMS_INTERRUPT_LEVEL(1),
RTEMS_INTERRUPT_MASK,
RTEMS_TIMESLICE_MASK,
desired_mode,
&old_mode
);
(void) rtems_task_mode(
RTEMS_INTERRUPT_LEVEL(0),
RTEMS_INTERRUPT_MASK,
RTEMS_TIMESLICE_MASK,
desired_mode,
&old_mode
);
}