On Sun, Jan 08, 2017 at 07:15:06PM -0800, Daniele Di Proietto wrote:
> +if (!poll_cnt) {
> +while (seq_read(pmd->reload_seq) == pmd->last_reload_seq) {
> +seq_wait(pmd->reload_seq, pmd->last_reload_seq);
> +poll_block();
> +}
> +lc = 1025;
1025
There's no reason for a pmd thread to perform its main loop if there are
no queues in its poll_list.
This commit introduces a seq object on which the pmd thread can be
blocked, if there are no queues.
When the main thread wants to reload a pmd threads it must now change
the seq object (in case