git: kqueue: Use wakeup_one based on # of threads sleep on kqueue

Sepherosa Ziehau sephe at crater.dragonflybsd.org
Wed Mar 2 06:42:41 PST 2016


commit 8bb3cb3f171f6f624dd1009eb0c79ea2d82d598d
Author: Sepherosa Ziehau <sephe at dragonflybsd.org>
Date:   Wed Mar 2 22:39:29 2016 +0800

    kqueue: Use wakeup_one based on # of threads sleep on kqueue
    
    Get rid of the sysctl to set wakeup_one optimization.  This also
    unbreaks the case when wakeup_one optimization is enabled, and
    multiple threads share and sleep on one kqueue.

Summary of changes:
 sys/kern/kern_event.c | 11 ++++-------
 sys/sys/eventvar.h    |  2 +-
 2 files changed, 5 insertions(+), 8 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/8bb3cb3f171f6f624dd1009eb0c79ea2d82d598d


-- 
DragonFly BSD source repository


More information about the Commits mailing list