> From: Christian Ludwig
> Date: Tue, 16 Oct 2018 08:31:14 +0200
>
> Do not roll a custom for-loop, use the appropriate TAILQ function.
>
> Also use unsleep() instead of coding the same functionality here again.
> There is only one place in the system that resets p_wchan now. And the
> unsleep-p
On Tue, Oct 16, 2018 at 08:31:14AM +0200, Christian Ludwig wrote:
> Do not roll a custom for-loop, use the appropriate TAILQ function.
>
> Also use unsleep() instead of coding the same functionality here again.
> There is only one place in the system that resets p_wchan now. And the
> unsleep-part
Do not roll a custom for-loop, use the appropriate TAILQ function.
Also use unsleep() instead of coding the same functionality here again.
There is only one place in the system that resets p_wchan now. And the
unsleep-part has the same pattern like in endtsleep().
---
sys/kern/kern_synch.c | 12 +