mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2025-12-05 23:23:13 +00:00
Added call to _Watchdog_Remove to remove the sporadic timer. It was
being reinserted onto the ticks chain.
This commit is contained in:
@@ -115,6 +115,7 @@ int pthread_setschedparam(
|
|||||||
|
|
||||||
case SCHED_SPORADIC:
|
case SCHED_SPORADIC:
|
||||||
api->ss_high_priority = api->schedparam.sched_priority;
|
api->ss_high_priority = api->schedparam.sched_priority;
|
||||||
|
_Watchdog_Remove( &api->Sporadic_timer );
|
||||||
_POSIX_Threads_Sporadic_budget_TSR( 0, the_thread );
|
_POSIX_Threads_Sporadic_budget_TSR( 0, the_thread );
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -115,6 +115,7 @@ int pthread_setschedparam(
|
|||||||
|
|
||||||
case SCHED_SPORADIC:
|
case SCHED_SPORADIC:
|
||||||
api->ss_high_priority = api->schedparam.sched_priority;
|
api->ss_high_priority = api->schedparam.sched_priority;
|
||||||
|
_Watchdog_Remove( &api->Sporadic_timer );
|
||||||
_POSIX_Threads_Sporadic_budget_TSR( 0, the_thread );
|
_POSIX_Threads_Sporadic_budget_TSR( 0, the_thread );
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user