mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2026-09-10 14:47:24 +08:00
pthread.c: Use UINT32_MAX rather than constant value
This commit is contained in:
@@ -138,7 +138,7 @@ void _POSIX_Threads_Sporadic_budget_callout(
|
||||
* This will prevent the thread from consuming its entire "budget"
|
||||
* while at low priority.
|
||||
*/
|
||||
the_thread->cpu_time_budget = 0xFFFFFFFF; /* XXX should be based on MAX_U32 */
|
||||
the_thread->cpu_time_budget = UINT32_MAX;
|
||||
|
||||
new_priority = _POSIX_Priority_To_core(api->schedparam.sched_ss_low_priority);
|
||||
the_thread->real_priority = new_priority;
|
||||
|
||||
Reference in New Issue
Block a user