On 6 February 2017 at 17:02, Martin Pieuchot <m...@openbsd.org> wrote: > PF has its own home-brewed solution for dealing with CPU hogging. It > has been introduced in r1.88 of net/pf_table.c and I couldn't find any > explanation why it is different than the idiom we use in other places. > > So let's use the same idiom, I promise to introduce a macro an unify all > of them once this is in. > > ok? >
Why not replace YIELD with sched_pause() then?