mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2025-12-05 15:15:44 +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:
|
||||
api->ss_high_priority = api->schedparam.sched_priority;
|
||||
_Watchdog_Remove( &api->Sporadic_timer );
|
||||
_POSIX_Threads_Sporadic_budget_TSR( 0, the_thread );
|
||||
break;
|
||||
}
|
||||
|
||||
@@ -115,6 +115,7 @@ int pthread_setschedparam(
|
||||
|
||||
case SCHED_SPORADIC:
|
||||
api->ss_high_priority = api->schedparam.sched_priority;
|
||||
_Watchdog_Remove( &api->Sporadic_timer );
|
||||
_POSIX_Threads_Sporadic_budget_TSR( 0, the_thread );
|
||||
break;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user