Index: sys/kern/sched_ule.c =================================================================== --- sys/kern/sched_ule.c +++ sys/kern/sched_ule.c @@ -166,7 +166,8 @@ #define SCHED_PRI_RANGE (SCHED_PRI_MAX - SCHED_PRI_MIN + 1) #define SCHED_PRI_TICKS(ts) \ (SCHED_TICK_HZ((ts)) / \ - (roundup(SCHED_TICK_TOTAL((ts)), SCHED_PRI_RANGE) / SCHED_PRI_RANGE)) + ((int)roundup((uintmax_t)SCHED_TICK_TOTAL((ts)), SCHED_PRI_RANGE) / \ + SCHED_PRI_RANGE)) #define SCHED_PRI_NICE(nice) (nice) /*