forked from Imagelibrary/rtems
tm08: Do not use RTEMS_INTERRUPT_MASK for no reschedule case
Updates #3000.
This commit is contained in:
@@ -81,7 +81,8 @@ rtems_task test_task(
|
|||||||
uint32_t index;
|
uint32_t index;
|
||||||
rtems_task_priority old_priority;
|
rtems_task_priority old_priority;
|
||||||
rtems_time_of_day time;
|
rtems_time_of_day time;
|
||||||
uint32_t old_mode;
|
rtems_mode old_mode;
|
||||||
|
rtems_mode desired_mode;
|
||||||
|
|
||||||
benchmark_timer_initialize();
|
benchmark_timer_initialize();
|
||||||
for ( index=1 ; index <= OPERATION_COUNT ; index++ )
|
for ( index=1 ; index <= OPERATION_COUNT ; index++ )
|
||||||
@@ -140,16 +141,18 @@ rtems_task test_task(
|
|||||||
0
|
0
|
||||||
);
|
);
|
||||||
|
|
||||||
|
desired_mode = old_mode;
|
||||||
|
|
||||||
benchmark_timer_initialize();
|
benchmark_timer_initialize();
|
||||||
for ( index=1 ; index <= OPERATION_COUNT ; index++ ) {
|
for ( index=1 ; index <= OPERATION_COUNT ; index++ ) {
|
||||||
(void) rtems_task_mode(
|
(void) rtems_task_mode(
|
||||||
RTEMS_INTERRUPT_LEVEL(1),
|
RTEMS_TIMESLICE_MASK,
|
||||||
RTEMS_INTERRUPT_MASK,
|
desired_mode,
|
||||||
&old_mode
|
&old_mode
|
||||||
);
|
);
|
||||||
(void) rtems_task_mode(
|
(void) rtems_task_mode(
|
||||||
RTEMS_INTERRUPT_LEVEL(0),
|
RTEMS_TIMESLICE_MASK,
|
||||||
RTEMS_INTERRUPT_MASK,
|
desired_mode,
|
||||||
&old_mode
|
&old_mode
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user