TIMEOUT(9): Support callout_drain()

This commit is contained in:
Sebastian Huber 2013-10-29 10:26:48 +01:00
parent a9e26f5d5b
commit e65783f249

View File

@ -825,8 +825,16 @@ again:
PICKUP_GIANT();
CC_LOCK(cc);
#else /* __rtems__ */
BSD_ASSERT(0);
#endif /* __rtems__ */
/*
* On RTEMS the LOR problem above does not
* exist since here we do not use
* sleepq_set_timeout() and instead use the
* RTEMS watchdog.
*/
cc->cc_waiting = 1;
msleep_spin(&cc->cc_waiting, &cc->cc_lock,
"codrain", 0);
#endif /* __rtems__ */
}
} else if (use_lock && !cc->cc_cancel) {
/*