|
|
| version 1.40.2.1, 2023/07/27 20:47:12 | version 1.41.4.1, 2023/08/17 14:13:07 |
|---|---|
| Line 1385 sched_hook_fetch(void *root, void *arg __unused) | Line 1385 sched_hook_fetch(void *root, void *arg __unused) |
| if (TAILQ_FIRST(&r->root_timer)) { | if (TAILQ_FIRST(&r->root_timer)) { |
| m = r->root_wait; | m = r->root_wait; |
| sched_timespecsub(&m, &now, &mtmp); | sched_timespecsub(&m, &now, &mtmp); |
| r->root_wait = mtmp; | if (mtmp.tv_sec < 0 || mtmp.tv_nsec < 0) |
| /* don't wait for events. we have ready timer */ | |
| sched_timespecclear(&r->root_wait); | |
| else | |
| r->root_wait = mtmp; | |
| } else { | } else { |
| /* set wait INFTIM */ | /* set wait INFTIM */ |
| sched_timespecinf(&r->root_wait); | sched_timespecinf(&r->root_wait); |
| Line 1396 sched_hook_fetch(void *root, void *arg __unused) | Line 1400 sched_hook_fetch(void *root, void *arg __unused) |
| m = TASK_TS(task); | m = TASK_TS(task); |
| sched_timespecsub(&m, &now, &mtmp); | sched_timespecsub(&m, &now, &mtmp); |
| r->root_wait = mtmp; | if (mtmp.tv_sec < 0 || mtmp.tv_nsec < 0) |
| /* don't wait for events. we have ready timer */ | |
| sched_timespecclear(&r->root_wait); | |
| else | |
| r->root_wait = mtmp; | |
| } else { | } else { |
| /* set wait INFTIM */ | /* set wait INFTIM */ |
| sched_timespecinf(&r->root_wait); | sched_timespecinf(&r->root_wait); |